mirror of
https://git.yoctoproject.org/poky
synced 2026-03-04 06:19:40 +01:00
this effectively removes below warning: tar: removing leading '/' from member names Signed-off-by: Kevin Tian <kevin.tian@intel.com>
396 B
396 B
#!/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