aboutsummaryrefslogtreecommitdiffstats
path: root/meta/packages/udev/files/udev-cache
blob: 77bbda6f1b8156206ba437de12e48a57e40e09a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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