Mnyb;534982 Wrote: 
> 
> These factory resets when you do it wrong is tedious.. and boring to
> reset everything else.

You need a good reset script. When doing dangerous stuff like this
remotely on normal Linux systems (a great example is tweaking the
firewall on a server that's hours away from me), I like to do things
like schedule an 'at' job to run 5 minutes later that restores the old
config file and stop/starts networking. Then I can at least get back in
pretty quickly if I goof badly. 

Since Touch doesn't have 'at' or 'cron' facilities, you need to do
something like make a shell script like


Code:
--------------------
    #!/bin/sh
  sleep 300
  # you should have saved a known good config to /etc/network/interfaces.orig
  cat /etc/network/interfaces.orig > /etc/network/interfaces
  ifdown -f wlan0
  ifup wlan0
--------------------


and then run that in the background. If your new config works, you can
use the 'jobs' command to get the background task ID and 'kill %N' to
stop it. If you new config fails, sit tight and wait for the background
shell script to save you.


-- 
peterw

http://www.tux.org/~peterw/
Free plugins:  'AllQuiet'
(http://www.tux.org/~peterw/slim/AllQuiet.html) 'Auto Dim/AutoDisplay'
(http://www.tux.org/~peterw/slim/AutoDisplay.html) 'BlankSaver'
(http://www.tux.org/~peterw/slim/BlankSaver.html) 'ContextMenu'
(http://www.tux.org/~peterw/slim/ContextMenu.html) 'DenonSerial'
(http://www.tux.org/~peterw/slim/DenonSerial.html)
'FuzzyTime' (http://www.tux.org/~peterw/slim/FuzzyTime.html) 'KidsPlay'
(http://www.tux.org/~peterw/slim/KidsPlay.html) 'KitchenTimer'
(http://www.tux.org/~peterw/slim/KitchenTimer.html) 'PlayLog'
(http://www.tux.org/~peterw/slim/PlayLog.html)
'PowerCenter/BottleRocket'
(http://www.tux.org/~peterw/slim/PowerCenter.html) 'SaverSwitcher'
(http://www.tux.org/~peterw/slim/SaverSwitcher.html)
'SettingsManager'
(http://www.tux.org/~peterw/slim/SettingsManager.html) 'SleepFade'
(http://www.tux.org/~peterw/slim/SleepFade.html) 'StatusFirst'
(http://www.tux.org/~peterw/slim/StatusFirst.html) 'SyncOptions'
(http://www.tux.org/~peterw/slim/SyncOptions.html) 'VolumeLock'
(http://www.tux.org/~peterw/slim/VolumeLock.html)
------------------------------------------------------------------------
peterw's Profile: http://forums.slimdevices.com/member.php?userid=2107
View this thread: http://forums.slimdevices.com/showthread.php?t=77340

_______________________________________________
Touch mailing list
Touch@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/touch

Reply via email to