Associate autoipd with bat0
This commit is contained in:
parent
e4f0e9de3b
commit
87c92d4d10
|
@ -1699,7 +1699,6 @@ function mesh_babel {
|
|||
echo ' echo "Interface $IFACE was not found"' >> $babel_script
|
||||
echo ' else' >> $babel_script
|
||||
echo ' echo "Stopping"' >> $babel_script
|
||||
echo ' avahi-autoipd -k $IFACE' >> $babel_script
|
||||
echo ' fi' >> $babel_script
|
||||
echo ' ifconfig $IFACE down' >> $babel_script
|
||||
echo ' pkill babeld' >> $babel_script
|
||||
|
@ -1720,7 +1719,6 @@ function mesh_babel {
|
|||
echo -n 'iwconfig $IFACE mode ad-hoc channel ' >> $babel_script
|
||||
echo "$WIFI_CHANNEL essid \"$ESSID\"" >> $babel_script
|
||||
echo 'ifconfig $IFACE up' >> $babel_script
|
||||
echo 'avahi-autoipd $IFACE' >> $babel_script
|
||||
echo -n 'ifconfig $IFACE:avahi ' >> $babel_script
|
||||
echo -n "$LOCAL_NETWORK_STATIC_IP_ADDRESS netmask " >> $babel_script
|
||||
echo '255.255.255.0 broadcast 192.168.13.255' >> $babel_script
|
||||
|
@ -1814,7 +1812,7 @@ function mesh_batman_bridge {
|
|||
echo ' modprobe batman-adv' >> $batman_script
|
||||
echo ' batctl if add $IFACE' >> $batman_script
|
||||
echo ' ifconfig $IFACE up' >> $batman_script
|
||||
echo ' avahi-autoipd -D $IFACE' >> $batman_script
|
||||
echo ' avahi-autoipd -D bat0' >> $batman_script
|
||||
echo ' ifconfig bat0 up promisc' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' #Use persistent HWAddr' >> $batman_script
|
||||
|
@ -1856,7 +1854,7 @@ function mesh_batman_bridge {
|
|||
echo ' rmmod batman-adv' >> $batman_script
|
||||
echo ' ifconfig $IFACE mtu 1500' >> $batman_script
|
||||
echo ' ifconfig $IFACE down' >> $batman_script
|
||||
echo ' avahi-autoipd -k $IFACE' >> $batman_script
|
||||
echo ' avahi-autoipd -k bat0' >> $batman_script
|
||||
echo ' iwconfig $IFACE mode managed' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' systemctl restart network-manager' >> $batman_script
|
||||
|
|
|
@ -122,7 +122,6 @@ function mesh_babel {
|
|||
echo ' echo "Interface $IFACE was not found"' >> $babel_script
|
||||
echo ' else' >> $babel_script
|
||||
echo ' echo "Stopping"' >> $babel_script
|
||||
echo ' avahi-autoipd -k $IFACE' >> $babel_script
|
||||
echo ' fi' >> $babel_script
|
||||
echo ' ifconfig $IFACE down' >> $babel_script
|
||||
echo ' pkill babeld' >> $babel_script
|
||||
|
@ -143,7 +142,6 @@ function mesh_babel {
|
|||
echo -n 'iwconfig $IFACE mode ad-hoc channel ' >> $babel_script
|
||||
echo "$WIFI_CHANNEL essid \"$ESSID\"" >> $babel_script
|
||||
echo 'ifconfig $IFACE up' >> $babel_script
|
||||
echo 'avahi-autoipd -D $IFACE' >> $babel_script
|
||||
echo -n 'ifconfig $IFACE:avahi ' >> $babel_script
|
||||
echo -n "$LOCAL_NETWORK_STATIC_IP_ADDRESS netmask " >> $babel_script
|
||||
echo '255.255.255.0 broadcast 192.168.13.255' >> $babel_script
|
||||
|
@ -221,7 +219,7 @@ function mesh_batman {
|
|||
echo ' modprobe batman-adv' >> $batman_script
|
||||
echo ' batctl if add $IFACE' >> $batman_script
|
||||
echo ' ifconfig $IFACE up' >> $batman_script
|
||||
echo ' avahi-autoipd -D $IFACE' >> $batman_script
|
||||
echo ' avahi-autoipd -D bat0' >> $batman_script
|
||||
echo ' ifconfig bat0 up promisc' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' #Use persistent HWAddr' >> $batman_script
|
||||
|
@ -263,7 +261,7 @@ function mesh_batman {
|
|||
echo ' rmmod batman-adv' >> $batman_script
|
||||
echo ' ifconfig $IFACE mtu 1500' >> $batman_script
|
||||
echo ' ifconfig $IFACE down' >> $batman_script
|
||||
echo ' avahi-autoipd -k $IFACE' >> $batman_script
|
||||
echo ' avahi-autoipd -k bat0' >> $batman_script
|
||||
echo ' iwconfig $IFACE mode managed' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||
|
|
Loading…
Reference in New Issue