This commit is contained in:
Bob Mottram 2015-08-07 23:23:01 +01:00
parent ad2c37e52c
commit 9dfbcea165
1 changed files with 5 additions and 5 deletions

View File

@ -109,11 +109,11 @@ function mesh_babel {
echo ' exit 1' >> $babel_script
echo 'fi' >> $babel_script
echo '' >> $babel_script
echo 'if [ -f /bin/systemctl ]; then' >> $batman_script
echo ' systemctl stop networking' >> $batman_script
echo 'else' >> $batman_script
echo ' service networking stop' >> $batman_script
echo 'fi' >> $batman_script
echo 'if [ -f /bin/systemctl ]; then' >> $babel_script
echo ' systemctl stop networking' >> $babel_script
echo 'else' >> $babel_script
echo ' service networking stop' >> $babel_script
echo 'fi' >> $babel_script
echo 'ifconfig $IFACE down' >> $babel_script
echo -n 'iwconfig $IFACE mode ad-hoc channel ' >> $babel_script
echo "$WIFI_CHANNEL essid \"$ESSID\"" >> $babel_script