mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-11 00:26:25 +02:00
23 lines
405 B
Bash
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
|