diff options
Diffstat (limited to 'meta/packages/udev/files')
-rw-r--r-- | meta/packages/udev/files/udev-cache | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/packages/udev/files/udev-cache b/meta/packages/udev/files/udev-cache new file mode 100644 index 000000000..a4e91915b --- /dev/null +++ b/meta/packages/udev/files/udev-cache @@ -0,0 +1,20 @@ +#!/bin/sh -e + +### BEGIN INIT INFO +# Provides: udev-cache +# Required-Start: mountall +# Required-Stop: +# Default-Start: S +# Default-Stop: +# Short-Description: cache /dev to speedup the udev next boot +### END INIT INFO + +[ -d /sys/class ] || exit 1 +[ -r /proc/mounts ] || exit 1 +[ -x /sbin/udevd ] || exit 1 + +if [ ! -e /etc/dev.tar ]; then + (cd /; tar cf /etc/dev.tar /dev) +fi + +exit 0 |