Use network-manager
This commit is contained in:
parent
fd3f7e0d89
commit
c3053c4c6f
|
@ -104,7 +104,7 @@ function mesh_babel {
|
|||
echo ' if [ -f /bin/systemctl ]; then' >> $babel_script
|
||||
echo ' systemctl restart networking' >> $babel_script
|
||||
echo ' else' >> $babel_script
|
||||
echo ' service networking restart' >> $babel_script
|
||||
echo ' service network-manager restart' >> $babel_script
|
||||
echo ' fi' >> $babel_script
|
||||
echo ' exit 1' >> $babel_script
|
||||
echo 'fi' >> $babel_script
|
||||
|
@ -112,7 +112,7 @@ function mesh_babel {
|
|||
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 ' service network-manager stop' >> $babel_script
|
||||
echo 'fi' >> $babel_script
|
||||
echo 'ifconfig $IFACE down' >> $babel_script
|
||||
echo -n 'iwconfig $IFACE mode ad-hoc channel ' >> $babel_script
|
||||
|
@ -166,7 +166,7 @@ function mesh_batman {
|
|||
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 ' service network-manager stop' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo ' sleep 5' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
|
@ -229,7 +229,7 @@ function mesh_batman {
|
|||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||
echo ' systemctl restart networking' >> $batman_script
|
||||
echo ' else' >> $batman_script
|
||||
echo ' service networking restart' >> $batman_script
|
||||
echo ' service network-manager restart' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo '}' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
|
|
Loading…
Reference in New Issue