aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/udev/udev-165/cache
blob: c0d400b4482945ae24b8f866836bab0aac056c07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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