aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasis@exherbo.org>2016-02-12 00:39:46 -0500
committerKylie McClain <somasis@exherbo.org>2016-02-12 00:39:52 -0500
commitba13c0ee957645f75f97680c05544a136d99d35d (patch)
treebe85e19a6d7e3e982d8a3ac10a14762b54e3fa63
parenta3cac8e7d275b472a8816f4b0766c914c5d62508 (diff)
downloadlighter-ba13c0ee957645f75f97680c05544a136d99d35d.tar.gz
lighter-ba13c0ee957645f75f97680c05544a136d99d35d.tar.xz
lighter-ba13c0ee957645f75f97680c05544a136d99d35d.zip
init: use last set of variableHEADmaster
-rwxr-xr-xskel/init2
1 files changed, 1 insertions, 1 deletions
diff --git a/skel/init b/skel/init
index d8a130d..db8ef66 100755
--- a/skel/init
+++ b/skel/init
@@ -6,7 +6,7 @@ mount -t sysfs sysfs /sys
args=$(tr ' ' '\n' < /proc/cmdline)
var() {
- echo "$args" | grep "^$1=" | cut -d= -f2
+ echo "$args" | grep "^$1=" | cut -d= -f2- | tail -1
}
arg() {
echo "$args" | grep -q "^$1$"