diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2010-06-20 19:25:43 +0400 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2010-06-20 19:25:43 +0400 |
commit | 22ff63fa0ea80d5afcddcf442bbf47c90e0468df (patch) | |
tree | 320b1fb85a429c9be6b7b86130232c9ce9600ae7 /recipes/udev/udev-154/cache | |
parent | 982a1168dc24ca1bd36b068d60981a2c5cb2880d (diff) | |
parent | c5955cfe486cb84ba27ad0692ceecdaab779bb99 (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/cache | 18 |
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 |