Files
meta-openembedded/meta-oe/recipes-core/udev/udev-165/cache
Koen Kooi c58cc7d379 move layer into meta-oe in preparation for future splits
As per TSC decision

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-03-17 21:41:22 +01:00

23 lines
405 B
Bash

#!/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
else
rm -f /tmp/uname
rm -f /tmp/cmdline
rm -f /tmp/atags
fi
exit 0