/etc/init.d/hostname.sh was shipped with the initscripts,
but it doesn't necessarily exist anymore nowadays.
So instead directly invoke `hostname` as the init script
does as well.
/etc/init.d/avahi-daemon restart
fi
/etc/init.d/avahi-daemon restart
fi
- /etc/init.d/hostname.sh
+ hostname "$NEW_HOSTNAME"
if [ -z "$NONINTERACTIVE" ] ; then
dialog --stdout --title "${PN}" --msgbox "Setting hostname to $NEW_HOSTNAME was successful.$POSTFIX" 0 0
if [ -z "$NONINTERACTIVE" ] ; then
dialog --stdout --title "${PN}" --msgbox "Setting hostname to $NEW_HOSTNAME was successful.$POSTFIX" 0 0