first-run-wizard: Remove /tmp/nocleanwarn to prevent showing the "unit has crashed...
[openpandora.oe.git] / recipes / pandora-system / pandora-first-run-wizard / first-run-wizard.sh
index f1e263c..e186a5c 100755 (executable)
@@ -273,13 +273,14 @@ update-rc.d -f samba remove
 update-rc.d -f xinetd remove
 update-rc.d -f avahi-daemon remove
 update-rc.d -f apmd remove
-update-rc.d -f usb-gadget remove
 update-rc.d -f banner remove
 update-rc.d -f portmap remove
 update-rc.d -f mountnfs remove
 update-rc.d -f blueprobe remove
 update-rc.d -f dropbear remove
 update-rc.d -f wl1251-init remove
+# leave this one alone, needed for OTG host mode, powersaving should be ok on 3.2.39 at least
+#update-rc.d -f usb-gadget remove
 
 # prevent wifi from being autoloaded on later kernels, let wl1251-init script do it
 if ! grep -q 'blacklist wl1251_sdio' /etc/modprobe.conf 2> /dev/null; then
@@ -312,7 +313,7 @@ if zenity --question --title="Calibrate Touchscreen" --text="It is recommended t
   /usr/pandora/scripts/op_touchinit.sh
 while ! zenity --question --title="Check Calibration" --text="Your new calibration setting has been applied.\n\nPlease check if the touchscreen is now working properly.\nIf not, you might want to try a recalibration.\n\n(Hint: use the nubs to press the button if the touchscreen is way off)" --ok-label="The touchscreen is fine" --cancel-label="Recalibrate"; do
       TSLIB_CONSOLEDEVICE=none op_runfbapp ts_calibrate
-      sudo /usr/pandora/scripts/op_touchinit.sh  
+  /usr/pandora/scripts/op_touchinit.sh  
 done
 fi
 
@@ -340,7 +341,7 @@ esac
 done
 # ----
 
-
+rm /tmp/nocleanwarn
 # ----
 else
 poweroff