Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex > iRex Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 04-09-2007, 05:02 PM   #31
jayk
Enthusiast
jayk doesn't litterjayk doesn't litterjayk doesn't litter
 
Posts: 26
Karma: 201
Join Date: Mar 2007
Device: Iliad
On making it unbrickable

Hey Adam B.

A thought occurred to me... One of the things I occasionally do on freebsd/linux machines I've set up where people aside from me will have root access... If you put a file called -i in the really important directories - like / and /etc and /boot for example, it will force rm to prompt even if the -f flag was provided, because the shell interprets the rm -rf * as: rm -rf -i restoffiles

You can accomplish it easily by:

Code:
touch -- /-i /etc/-i
should make it much harder to accidentally erase everything with an errant rm -rf - it won't stop everything - but it adds a little safety.

JayK
jayk is offline   Reply With Quote
Old 04-09-2007, 05:22 PM   #32
nekokami
fruminous edugeek
nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.nekokami ought to be getting tired of karma fortunes by now.
 
nekokami's Avatar
 
Posts: 6,745
Karma: 551260
Join Date: Oct 2006
Location: Northeast US
Device: iPad, eBw 1150
Good tip! I'd recommend that iRex add this to the iLiad by default. (And I'm going to put it on the Ubuntu server at work tomorrow.)
nekokami is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bricked iLiad after flashing e-milius iRex 4 01-28-2009 10:46 AM
Bricked iLiad after badly done reflash ? Pode iRex 6 05-19-2008 03:42 PM
Almost just bricked my Iliad! JimBob1971 iRex 0 03-11-2008 07:19 PM
New member of "I bricked my iLiad"-Club: me yokos iRex 40 09-21-2007 04:06 PM
Bricked Iliad - what now sigi iRex 21 11-01-2006 01:18 PM


All times are GMT -4. The time now is 04:15 PM.


MobileRead.com is a privately owned, operated and funded community.