Changeset 36896


Ignore:
Timestamp:
2013-06-10T10:24:44+02:00 (3 years ago)
Author:
blogic
Message:

procd: make the preinit rules wildcard all buttons for failsafe

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

Location:
trunk/package
Files:
2 edited

Legend:

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

    r36891 r36896  
    7979      preinit_net_echo "Please press button now to enter failsafe" 
    8080      pi_failsafe_net_message=false 
    81       fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true && export FAILSAFE 
    82       [ -f "/tmp/failsafe_button" ] && FAILSAFE=true && export FAILSAFE && rm /tmp/failsafe_button 
     81      fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true 
     82      [ -f "/tmp/failsafe_button" ] && FAILSAFE=true 
     83      [ "$FAILSAFE" = "true" ] && export FAILSAFE && touch /tmp/failsafe 
    8384    fi 
    8485} 
  • trunk/package/procd/files/hotplug-preinit.json

    r36001 r36896  
    1515                [ "and", 
    1616                        [ "eq", "SUBSYSTEM", "button" ], 
    17                         [ "eq", "BUTTON", "reset" ], 
    1817                ], 
    1918                [ "exec", "/etc/rc.button/failsafe" ] 
Note: See TracChangeset for help on using the changeset viewer.