From f2d8d8b1e21e9f75b76c95ab405d33348dae986d Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 21 Mar 2019 16:44:39 -0400 Subject: [PATCH] Update function patch visudo to include lokinet start/stop/gen locations. --- installers/common.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index 8066910..fe8f4ad 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -228,6 +228,9 @@ function patch_system_files() { sudo ln -s /usr/share/dhcpcd/hooks/10-wpa_supplicant /etc/dhcp/dhclient-enter-hooks.d/ # Set commands array cmds=( + "/home/pi/loki-network/lokilaunch.sh gen" + "/home/pi/loki-network/lokilaunch.sh start" + "/home/pi/loki-network/lokilaunch.sh stop" "/sbin/ifdown" "/sbin/ifup" "/bin/cat /etc/wpa_supplicant/wpa_supplicant.conf" @@ -237,7 +240,7 @@ function patch_system_files() { "/sbin/wpa_cli -i wlan[0-9] scan_results" "/sbin/wpa_cli -i wlan[0-9] scan" "/sbin/wpa_cli -i wlan[0-9] reconfigure" - "/sbin/wpa_cli -i wlan[0-9] select_network" + "/sbin/wpa_cli -i wlan[0-9] select_network" "/bin/cp /tmp/hostapddata /etc/hostapd/hostapd.conf" "/etc/init.d/hostapd start" "/etc/init.d/hostapd stop"