1
0
mirror of https://github.com/rancher/os.git synced 2025-06-23 13:37:03 +00:00

Add option to not daemonize udev

This commit is contained in:
Darren Shepherd 2015-03-29 03:09:23 -07:00
parent 95a2f3ed67
commit 363cd2764d

View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/bash
mount --bind /host/dev /dev mount --bind /host/dev /dev
if [ "$DAEMON" = true ]; then
exec udevd
fi
udevd --daemon udevd --daemon
udevadm trigger --action=add udevadm trigger --action=add
udevadm settle udevadm settle