* Clean up indentation.
svn path=/nixos/trunk/; revision=12169
This commit is contained in:
parent
8c7859f7fb
commit
1ec810f844
@ -51,17 +51,17 @@ in
|
|||||||
{
|
{
|
||||||
name = "udev";
|
name = "udev";
|
||||||
|
|
||||||
job = "
|
job = ''
|
||||||
start on startup
|
start on startup
|
||||||
stop on shutdown
|
stop on shutdown
|
||||||
|
|
||||||
env UDEV_CONFIG_FILE=${conf}
|
env UDEV_CONFIG_FILE=${conf}
|
||||||
|
|
||||||
start script
|
start script
|
||||||
echo '' > /proc/sys/kernel/hotplug
|
echo "" > /proc/sys/kernel/hotplug
|
||||||
|
|
||||||
# Get rid of possible old udev processes.
|
# Get rid of possible old udev processes.
|
||||||
${procps}/bin/pkill -u root '^udevd$' || true
|
${procps}/bin/pkill -u root "^udevd$" || true
|
||||||
|
|
||||||
# Start udev.
|
# Start udev.
|
||||||
${udev}/sbin/udevd --daemon
|
${udev}/sbin/udevd --daemon
|
||||||
@ -78,18 +78,18 @@ start script
|
|||||||
# Kill udev, let Upstart restart and monitor it. (This is nasty,
|
# Kill udev, let Upstart restart and monitor it. (This is nasty,
|
||||||
# but we have to run udevtrigger first. Maybe we can use
|
# but we have to run udevtrigger first. Maybe we can use
|
||||||
# Upstart's `binary' keyword, but it isn't implemented yet.)
|
# Upstart's `binary' keyword, but it isn't implemented yet.)
|
||||||
if ! ${procps}/bin/pkill -u root '^udevd$'; then
|
if ! ${procps}/bin/pkill -u root "^udevd$"; then
|
||||||
echo \"couldn't stop udevd\"
|
echo "couldn't stop udevd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while ${procps}/bin/pgrep -u root '^udevd$'; do
|
while ${procps}/bin/pgrep -u root "^udevd$"; do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
initctl emit new-devices
|
initctl emit new-devices
|
||||||
end script
|
end script
|
||||||
|
|
||||||
respawn ${udev}/sbin/udevd
|
respawn ${udev}/sbin/udevd
|
||||||
";
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user