plympton;538688 Wrote: 
> 
> Also, I keep bricking my machine when I've got a typo in my edits - any
> way to make THAT not happen!?

How on earth do your brick something that's already bricked? :-)

One trick you might leverage: on bootup, Touch looks for a file named
"squeezeos-boot.sh" on local media, and runs it if it exists. It's easy
to imagine a script on an "autorestore" SD card like


Code:
--------------------
    
  #!/bin/sh
  # Caveat: untested!!!
  # replace any ".bak" files on the root ubifs
  for f in `find /mnt/storage -xdev -type f -name \*.bak`; do
  oldname=`echo $f | sed 's:.bak$::'`
  cat "$f" > "$oldname"
  done
  
--------------------


so what you'd do before making a change and rebooting is save the old,
known good file as $orginalname.bak. When rebooting to test, keep your
"autorestore" SD card *out*. If the device seems toasted, unplug it,
pop the SD card in, and reboot to restore your .bak files.

Add another script to wipe out bak files that you'd run if Touch booted
ok, e.g.


Code:
--------------------
    
  #!/bin/sh
  # Caveat: untested!!!
  find /mnt/storage -xdev -type f -name \*.bak | xargs rm
  
--------------------


-- 
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=77679

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

Reply via email to