diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-05-21 03:59:42 -0400 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2014-06-16 18:35:46 +0800 |
commit | 36c954849cf9e9c0c4885b3b300ae23ba883ad72 (patch) | |
tree | d3e8643f7d1d9613e69afbd711dfaa0a6e889486 /meta/recipes-core/initrdscripts/initramfs-framework | |
parent | 833f07c28e0b62532ff428f5f60f37d3ef34fa54 (diff) | |
download | openembedded-core-contrib-36c954849cf9e9c0c4885b3b300ae23ba883ad72.tar.gz |
initramfs-framework: modify the fatal behaviour in init
When a fatal error occurs, we'd better drop into a shell instead of
having it sleep for 3600 seconds.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework')
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index 95fa9fb1a0..1e3c14ca1a 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init @@ -56,10 +56,7 @@ debug() { fatal() { echo $1 >/dev/console echo >/dev/console - - while [ "true" ]; do - sleep 3600 - done + exec sh } # Variables shared amoung modules |