Changeset 5


Ignore:
Timestamp:
2004-03-28T03:22:15+02:00 (14 years ago)
Author:
mbm
Message:

prevent script from being run multiple times

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/bin/firstboot

    r4 r5  
    44 
    55umount /jffs  
     6mount | grep jffs2 && { 
     7        echo "firstboot has already been run" 
     8        echo "to run firstboot again you must boot failsafe" 
     9        exit 
     10} 
     11 
    612mtd erase OpenWrt 
    713mount -t jffs2 /dev/mtdblock/4 /jffs 
Note: See TracChangeset for help on using the changeset viewer.