diff options
Diffstat (limited to 'meta/recipes-core/udev/udev/udev-cache')
-rw-r--r-- | meta/recipes-core/udev/udev/udev-cache | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/udev/udev-cache b/meta/recipes-core/udev/udev/udev-cache index 01fec6e96e..8a84fa9dc8 100644 --- a/meta/recipes-core/udev/udev/udev-cache +++ b/meta/recipes-core/udev/udev/udev-cache @@ -17,12 +17,10 @@ export TZ=/etc/localtime [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache -if [ "$DEVCACHE" != "" ]; then +if [ "$DEVCACHE" != "" -a -e /dev/shm/udev.cache ]; then echo "Populating dev cache" (cd /; tar cf "$DEVCACHE" dev) mv /dev/shm/udev.cache /etc/udev/cache.data -else - rm -f /dev/shm/udev.cache fi exit 0 |