Restart the avahi daemon at the end of start
This commit is contained in:
parent
baca04db72
commit
1dfd0e65a0
|
@ -1833,6 +1833,12 @@ function mesh_batman_bridge {
|
|||
echo ' brctl addif $BRIDGE $EIFACE' >> $batman_script
|
||||
echo ' ifconfig $BRIDGE up' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||
echo ' systemctl restart avahi-daemon' >> $batman_script
|
||||
echo ' else' >> $batman_script
|
||||
echo ' service avahi-daemon restart' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo '}' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo 'stop() {' >> $batman_script
|
||||
|
|
|
@ -167,11 +167,6 @@ function mesh_batman {
|
|||
echo ' apt-get -y install avahi-utils avahi-autoipd' >> $batman_script
|
||||
echo ' sed -i "s|#host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||
echo ' sed -i "s|host-name=.*|host-name=$(hostname)|g" /etc/avahi/avahi-daemon.conf' >> $batman_script
|
||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||
echo ' systemctl restart avahi-daemon' >> $batman_script
|
||||
echo ' else' >> $batman_script
|
||||
echo ' service avahi-daemon restart' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo 'fi' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo '# Mesh definition' >> $batman_script
|
||||
|
@ -240,6 +235,12 @@ function mesh_batman {
|
|||
echo ' brctl addif $BRIDGE $EIFACE' >> $batman_script
|
||||
echo ' ifconfig $BRIDGE up' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo ' if [ -f /bin/systemctl ]; then' >> $batman_script
|
||||
echo ' systemctl restart avahi-daemon' >> $batman_script
|
||||
echo ' else' >> $batman_script
|
||||
echo ' service avahi-daemon restart' >> $batman_script
|
||||
echo ' fi' >> $batman_script
|
||||
echo '}' >> $batman_script
|
||||
echo '' >> $batman_script
|
||||
echo 'stop() {' >> $batman_script
|
||||
|
|
Loading…
Reference in New Issue