mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
e412dbf6cd
We merged both files and udev-164 directory onto a single directory and renamed udev-new.inc onto udev.inc as we have a single version of udev now. (From OE-Core rev: abde2a045a39a70a6247a7ae591a131120ab8ed3) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
21 lines
396 B
Bash
21 lines
396 B
Bash
#!/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
|