summaryrefslogtreecommitdiff
path: root/recipes/udev/udev-151/cache
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2010-02-06 09:31:00 +0100
committerKoen Kooi <koen@openembedded.org>2010-02-14 11:28:39 +0100
commit6c072776e4e7ed8aa2b98b4e3406650397dff427 (patch)
tree40aae14ecd5166befe6ff73bbe0dfed867d3179d /recipes/udev/udev-151/cache
parentef952aaa9b04e815c353c041f60c95ab6b9ddf29 (diff)
attr: add 2.4.44
acl: add 2.2.49 udev: add 151
Diffstat (limited to 'recipes/udev/udev-151/cache')
-rw-r--r--recipes/udev/udev-151/cache18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/udev/udev-151/cache b/recipes/udev/udev-151/cache
new file mode 100644
index 0000000000..4db1466817
--- /dev/null
+++ b/recipes/udev/udev-151/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