summaryrefslogtreecommitdiff
path: root/recipes/udev/udev-154/cache
blob: 4db146681757f8e120b2b8bc478ae1881b26dff9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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