summaryrefslogtreecommitdiff
path: root/recipes/udev/udev-154/cache
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2010-06-20 19:25:43 +0400
committerDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2010-06-20 19:25:43 +0400
commit22ff63fa0ea80d5afcddcf442bbf47c90e0468df (patch)
tree320b1fb85a429c9be6b7b86130232c9ce9600ae7 /recipes/udev/udev-154/cache
parent982a1168dc24ca1bd36b068d60981a2c5cb2880d (diff)
parentc5955cfe486cb84ba27ad0692ceecdaab779bb99 (diff)
Merge branch 'org.openembedded.dev' of git://git.openembedded.org/openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/udev/udev-154/cache')
-rw-r--r--recipes/udev/udev-154/cache18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/udev/udev-154/cache b/recipes/udev/udev-154/cache
new file mode 100644
index 0000000000..4db1466817
--- /dev/null
+++ b/recipes/udev/udev-154/cache
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+export TZ=/etc/localtime
+
+[ -f /etc/default/udev ] && . /etc/default/udev
+
+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
+
+exit 0