start function

This commit is contained in:
Bob Mottram 2018-03-02 22:54:51 +00:00
parent d5d74165c0
commit efadadad13
1 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,7 @@ function stop {
systemctl stop dnsmasq systemctl stop dnsmasq
systemctl disable dnsmasq systemctl disable dnsmasq
# shellcheck disable=SC2153
if [ "$EIFACE" ]; then if [ "$EIFACE" ]; then
brctl delif "$BRIDGE" bat0 brctl delif "$BRIDGE" bat0
ifconfig "$BRIDGE" down || true ifconfig "$BRIDGE" down || true
@ -165,6 +166,7 @@ function add_wifi_interface {
ifconfig "$ifname" up ifconfig "$ifname" up
} }
# shellcheck disable=SC2120
function start { function start {
update_wifi_adaptors update_wifi_adaptors
@ -351,6 +353,7 @@ function monitor {
echo $'*** Restarting the network daemon. This may take a while. ***' echo $'*** Restarting the network daemon. This may take a while. ***'
echo '' echo ''
# shellcheck disable=SC2119
start start
} }
@ -375,6 +378,7 @@ case "$1" in
echo '' echo ''
echo $'*** Starting mesh network connection ***' echo $'*** Starting mesh network connection ***'
echo '' echo ''
# shellcheck disable=SC2119
start start
;; ;;
ping) ping)