summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2006-07-12 18:21:16 +0200
committermaximilian attems <maks@debian.org>2006-07-12 18:21:16 +0200
commit50586c0818aa8de3ba3aa1c105acbe31537a9be1 (patch)
tree3b58eab0db38393168cca8569fa213056974732a /init
parentf82a46fac97eee643cbd8600657f533a6e31665f (diff)
downloadinitramfs-tools-50586c0818aa8de3ba3aa1c105acbe31537a9be1.tar.gz
initramfs-tools-50586c0818aa8de3ba3aa1c105acbe31537a9be1.zip
- rename suspend boot script in resume
- update-initramfs add -b bootdif flag document it - check for noresume arg in init
Diffstat (limited to 'init')
-rwxr-xr-xinit10
1 files changed, 8 insertions, 2 deletions
diff --git a/init b/init
index 2c25295..427b964 100755
--- a/init
+++ b/init
@@ -40,7 +40,6 @@ export break=
export init=/sbin/init
export quiet=n
export readonly=y
-export resume=${RESUME}
export rootmnt=/root
export debug=
export cryptopts=${CRYPTOPTS}
@@ -77,7 +76,10 @@ for x in $(cat /proc/cmdline); do
BOOT=${x#boot=}
;;
resume=*)
- resume=${x#resume=}
+ RESUME=${x#resume=}
+ ;;
+ noresume)
+ NORESUME=y
;;
quiet)
quiet=y
@@ -102,6 +104,10 @@ for x in $(cat /proc/cmdline); do
esac
done
+if [ -n ${NORESUME} ]; then
+ export resume=${RESUME}
+fi
+
depmod -a
maybe_break top