From a5892604590c780abb68a714ae78693a6503d9d8 Mon Sep 17 00:00:00 2001 From: fbt Date: Mon, 25 Nov 2013 07:39:24 +0400 Subject: [PATCH] a slightly more smart mount and udev using /bin/udevd. If you have systemd-udevd, link it there instead of changing the script --- init.d/mount | 7 +++++-- init.d/udev | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/init.d/mount b/init.d/mount index 720a016..ffa4fe6 100755 --- a/init.d/mount +++ b/init.d/mount @@ -3,7 +3,10 @@ depends miscfs service_type='oneshot' -service_command='/bin/mount' -service_args='-a' + +start() { + [[ -w / ]] || { mount -o remount,rw /; } + mount -a +} unset stop diff --git a/init.d/udev b/init.d/udev index 49769a5..f6bccc2 100755 --- a/init.d/udev +++ b/init.d/udev @@ -1,6 +1,6 @@ #!/usr/bin/env watchman -service_command='/usr/lib/systemd/systemd-udevd' +service_command='/bin/udevd' service_args='--resolve-names=never' cfg_udev_settle_timeout="${cfg_udev_settle_timeout:-60}"