Changeset 2830


Ignore:
Timestamp:
2006-01-05T00:50:17+01:00 (12 years ago)
Author:
nbd
Message:

move firstboot to preinit for now (until a better solution is implemented), required by /etc/config/network generator

Location:
trunk/openwrt/package/base-files/default/etc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/base-files/default/etc/init.d/S10boot

    r2823 r2830  
    1111HOSTNAME=${HOSTNAME%%.*} 
    1212echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname 
    13  
    14 # automagically run firstboot 
    15 [ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && { 
    16         { mount|grep "on / type jffs2" 1>&-; } || firstboot 
    17 } 
    1813 
    1914mkdir -p /var/run 
  • trunk/openwrt/package/base-files/default/etc/preinit

    r2152 r2830  
    1717mount_root ${FAILSAFE:+failsafe} 
    1818 
     19# automagically run firstboot 
     20[ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && { 
     21        { mount|grep "on / type jffs2" 1>&-; } || firstboot 
     22} 
     23 
    1924exec /sbin/init 
Note: See TracChangeset for help on using the changeset viewer.