aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-25 15:03:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-25 15:03:59 +0200
commit864fc1c2e0597606ec8e2e04ae3150144aa3ed39 (patch)
tree640a3ad90260881937fad6a3ca675522b2fa0879 /init
parent0ba253ef6926d2f8bf403f9b96ca9120d0022861 (diff)
Add buildos monitor
Diffstat (limited to 'init')
-rwxr-xr-xinit2
1 files changed, 2 insertions, 0 deletions
diff --git a/init b/init
index 80bab77..7b869cb 100755
--- a/init
+++ b/init
@@ -77,6 +77,8 @@ udevadm settle || true
# lines that don't contain quites. Finally, clean up by removing blank
# lines.
#
+# Note: the same code as in buildos.
+#
readarray -t cmdline < <(cat /proc/cmdline | \
sed -r -e "s/([^ ]+=)?('[^']*'|\"[^\"]*\")/\n\1\2\n/g" | \
sed -r -e "/['\"]/!s/ /\n/g" |