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 | |||
17 | 17 | ||
18 | [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache | 18 | [ -f /etc/default/udev-cache ] && . /etc/default/udev-cache |
19 | 19 | ||
20 | if [ "$DEVCACHE" != "" ]; then | 20 | if [ "$DEVCACHE" != "" -a -e /dev/shm/udev.cache ]; then |
21 | echo "Populating dev cache" | 21 | echo "Populating dev cache" |
22 | (cd /; tar cf "$DEVCACHE" dev) | 22 | (cd /; tar cf "$DEVCACHE" dev) |
23 | mv /dev/shm/udev.cache /etc/udev/cache.data | 23 | mv /dev/shm/udev.cache /etc/udev/cache.data |
24 | else | ||
25 | rm -f /dev/shm/udev.cache | ||
26 | fi | 24 | fi |
27 | 25 | ||
28 | exit 0 | 26 | exit 0 |