# MTHS dnsmasq # and a hook to set up config files for MTHS ENABLED="yes" # This configuration is for manufacturing test. # Factory resets should not put back wifi defaults. if [[ -f /var/config/.defaults2.tar.gz ]] ; then rm /var/config/.defaults2.tar.gz fi # Stop ntpd. ntpd default is in root. sed -i 's/ENABLED="yes"/ENABLED="no"/' /etc/default/ntpd # Use the ifplugd in /var/config if ! [[ -L /etc/ifplugd ]] ; then rm -rf /etc/ifplugd ln -s /var/config/ifplugd /etc/ifplugd # ifplugd is already started (and probably bombed) # restart it. /etc/init.d/ifplugd stop /etc/init.d/ifplugd start fi if ! [[ -L /etc/default/usb-gadget ]] && [[ -f /var/config/default/usb-gadget ]] ; then rm -rf /etc/default/usb-gadget ln -s /var/config/default/usb-gadget /etc/default/usb-gadget fi