Remove udisks avahi service

This commit is contained in:
Bob Mottram 2015-08-09 11:10:56 +01:00
parent 51f1012b40
commit a99db1ab1b
2 changed files with 11 additions and 0 deletions

View File

@ -1657,6 +1657,12 @@ function configure_avahi {
PEER_ID=${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}
sed -i "s|#host-name=.*|host-name=mesh-$PEER_ID|g" /etc/avahi/avahi-daemon.conf
fi
# remove an avahi service which isn't used
if [ -f /etc/avahi/services/udisks.service ]; then
rm /etc/avahi/services/udisks.service
fi
systemctl restart avahi-daemon
echo 'configure_avahi' >> $COMPLETION_FILE
}

View File

@ -213,6 +213,11 @@ function mesh_batman {
echo ' fi' >> $batman_script
echo ' sleep 5' >> $batman_script
echo '' >> $batman_script
echo " # remove an avahi service which isn't used" >> $batman_script
echo ' if [ -f /etc/avahi/services/udisks.service ]; then' >> $batman_script
echo ' sudo rm /etc/avahi/services/udisks.service' >> $batman_script
echo ' fi' >> $batman_script
echo '' >> $batman_script
echo ' # Might have to re-enable wifi' >> $batman_script
echo ' rfkill unblock $(rfkill list|awk -F: "/phy/ {print $1}") || true' >> $batman_script
echo '' >> $batman_script