From 303e72d41793753079628a2d87c12fc4c0eec18d Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Sun, 29 Dec 2024 15:22:13 -0600 Subject: [PATCH] Disable wireless on OPi images (#42) Use nmcli to disable wireless radios. Fixes #31 --- OPi5_CIDATA/user-data | 3 ++- files/issue.txt | 1 - install_opi5.sh | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/OPi5_CIDATA/user-data b/OPi5_CIDATA/user-data index a4bd227..051c562 100644 --- a/OPi5_CIDATA/user-data +++ b/OPi5_CIDATA/user-data @@ -115,4 +115,5 @@ ssh_pwauth: true #- [ wget, "http://ubuntu.com", -O, /run/mydir/index.html ] runcmd: -- [ touch, /etc/cloud/cloud-init.disabled ] +- nmcli radio all off +- touch /etc/cloud/cloud-init.disabled diff --git a/files/issue.txt b/files/issue.txt index 1ca73e3..9a7af88 100644 --- a/files/issue.txt +++ b/files/issue.txt @@ -16,4 +16,3 @@ ################## :::::: ############## ######### - \ No newline at end of file diff --git a/install_opi5.sh b/install_opi5.sh index 5833f69..3b39277 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -1,3 +1,4 @@ +#!/bin/bash -v # Create pi/raspberry login if id "$1" >/dev/null 2>&1; then