Changeset 26312


Ignore:
Timestamp:
2011-03-27T07:39:53+02:00 (6 years ago)
Author:
cshore
Message:

[package] block-mount block-extroot: Add commands /etc/init.d/fstab overlay_enable and /etc/init.d/fstab whole_root_enable to renable a disable rootfs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/block-mount/files/fstab.init

    r23296 r26312  
    88 
    99START=20 
     10 
     11EXTRA_COMMANDS="overlay_enable whole_root_enable" 
     12EXTRA_HELP="        overlay_enable    Reenable overlay rootfs. (After you fix it). 
     13        whole_root_enable Reenable whole-disk rootfs.  (After you fix it)." 
     14 
     15rootfs_enable() { 
     16        local extroot_type="$1" 
     17                 
     18        if [ ! -d /tmp/${extroot_type}-disabled ]; then 
     19                echo "No disabled ${extroot_type} present (/tmp/${extroot_type}-disabled).  Can't renable." 
     20                exit 1 
     21        fi 
     22         
     23        rm -f /tmp/${extroot_type}-disabled/.extroot.md5sum 
     24        rm -f /tmp/${extroot_type}-disabled/etc/extroot.md5sum 
     25        echo "Please reboot router to complete re-enabling external rootfs." 
     26} 
     27 
     28overlay_enable() { 
     29        rootfs_enable overlay 
     30} 
     31 
     32whole_root_enable() { 
     33        rootfs_enable whole_root 
     34} 
    1035 
    1136do_mount() { 
Note: See TracChangeset for help on using the changeset viewer.