Skip to content

Commit

Permalink
nmcli works, rfkill doesn't
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Dec 29, 2024
1 parent 04a1e82 commit 40e4a88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions OPi5_CIDATA/user-data
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,5 @@ ssh_pwauth: true
#- [ wget, "http://ubuntu.com", -O, /run/mydir/index.html ]

runcmd:
- [ rfkill, block, all ]
- [ touch, /etc/cloud/cloud-init.disabled ]
- nmcli radio all off
- touch /etc/cloud/cloud-init.disabled
3 changes: 2 additions & 1 deletion install_opi5.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash -v

# Create pi/raspberry login
if id "$1" >/dev/null 2>&1; then
Expand Down Expand Up @@ -47,7 +48,7 @@ rm -f /etc/netplan/00-default-nm-renderer.yaml
cp -f ./OPi5_CIDATA/network-config /boot/network-config

# disable all wireless devices
rfkill block all
nmcli radio all off

# add customized user-data file for cloud-init
cp -f ./OPi5_CIDATA/user-data /boot/user-data
Expand Down

0 comments on commit 40e4a88

Please sign in to comment.