diff options
Diffstat (limited to 'recipes/udev/udev-151/cache')
-rw-r--r-- | recipes/udev/udev-151/cache | 18 |
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 |