mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 17:24:03 +02:00
speed up firstboot a bit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2220 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
68aef69e6a
commit
6b4f28c379
@ -42,11 +42,10 @@ echo "done"
|
||||
echo -n "setting up symlinks... "
|
||||
for file in $(cd /rom; find * -type f; find * -type l;)
|
||||
do {
|
||||
[ "${file%/*}" = "usr/lib/ipkg/info" -o "${file%/*}" = "etc/config" ] && {
|
||||
cp -f /rom/$file $file
|
||||
} || {
|
||||
ln -sf /rom/$file $file
|
||||
}
|
||||
case "${file%/*}" in
|
||||
"usr/lib/ipkg/info"|"etc/config") cp -f /rom/$file $file;;
|
||||
*) ln -sf /rom/$file $file;;
|
||||
esac
|
||||
} done
|
||||
echo "done"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user