Changeset 36430


Ignore:
Timestamp:
2013-04-25T21:02:37+02:00 (5 years ago)
Author:
blogic
Message:

preinit: move cmdline failsafe= handling ot the generic code

Signed-off-by: John Crispin <blogic@…>

Location:
trunk
Files:
3 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/preinit/30_failsafe_wait

    r36003 r36430  
    7575failsafe_wait() { 
    7676    FAILSAFE= 
    77     pi_failsafe_net_message=true 
    78     preinit_net_echo "Please press button now to enter failsafe" 
    79     pi_failsafe_net_message=false 
    80     fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true && export FAILSAFE 
     77    grep -q 'failsafe=' /proc/cmdline && FAILSAFE=true && export FAILSAFE 
     78    if [ "$FAILSAFE" != "true" ]; then 
     79      pi_failsafe_net_message=true 
     80      preinit_net_echo "Please press button now to enter failsafe" 
     81      pi_failsafe_net_message=false 
     82      fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true && export FAILSAFE 
     83    fi 
    8184} 
    8285 
Note: See TracChangeset for help on using the changeset viewer.