summaryrefslogtreecommitdiff
path: root/recipes/udev/udev-141/cache
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-08-20 15:59:09 -0700
committerTom Rini <tom_rini@mentor.com>2010-08-20 15:59:09 -0700
commit4bbc0df43bc27e51aa5f4410693389003aec9ae1 (patch)
treecc70fd041711162cfc162db20a93f5d73a5bb044 /recipes/udev/udev-141/cache
parentf554f67dfddb4093b9084c75f7910430d2f19b36 (diff)
udev 141/151/154: Move rm'ing /tmp/uname, etc, to udev-cache
Otherwise we'll remove these files before udev-cache is run. Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/udev/udev-141/cache')
-rw-r--r--recipes/udev/udev-141/cache20
1 files changed, 12 insertions, 8 deletions
diff --git a/recipes/udev/udev-141/cache b/recipes/udev/udev-141/cache
index 4db1466817..c0d400b448 100644
--- a/recipes/udev/udev-141/cache
+++ b/recipes/udev/udev-141/cache
@@ -6,13 +6,17 @@ export TZ=/etc/localtime
echo "Caching udev devnodes"
- if [ "$DEVCACHE" != "" ]; then
- echo -n "Populating dev cache"
- (cd /; tar cf $DEVCACHE dev)
- mv /tmp/uname /etc/udev/saved.uname
- mv /tmp/cmdline /etc/udev/saved.cmdline
- mv /tmp/atags /etc/udev/saved.atags
- echo
- fi
+if [ "$DEVCACHE" != "" ]; then
+ echo -n "Populating dev cache"
+ (cd /; tar cf $DEVCACHE dev)
+ mv /tmp/uname /etc/udev/saved.uname
+ mv /tmp/cmdline /etc/udev/saved.cmdline
+ mv /tmp/atags /etc/udev/saved.atags
+ echo
+else
+ rm -f /tmp/uname
+ rm -f /tmp/cmdline
+ rm -f /tmp/atags
+fi
exit 0