projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make dnsmasq probe for dhcp servers before starting a dhcp server
[openwrt.git]
/
target
/
default
/
target_skeleton
/
bin
/
firstboot
diff --git
a/target/default/target_skeleton/bin/firstboot
b/target/default/target_skeleton/bin/firstboot
index
5076d1c
..
cef258c
100755
(executable)
--- a/
target/default/target_skeleton/bin/firstboot
+++ b/
target/default/target_skeleton/bin/firstboot
@@
-1,6
+1,11
@@
#!/bin/sh
# $Id$
#!/bin/sh
# $Id$
+mount | grep squashfs >&- || {
+ echo "You do not have a squashfs partition; aborting"
+ echo "(firstboot cannot be run on jffs2 based firmwares)"
+ return
+}
[ -f "/tmp/.firstboot" ] && {
echo "firstboot is already running"
[ -f "/tmp/.firstboot" ] && {
echo "firstboot is already running"
@@
-37,7
+42,11
@@
echo "done"
echo -n "setting up symlinks... "
for file in $(cd /rom; find * -type f; find * -type l;)
do {
echo -n "setting up symlinks... "
for file in $(cd /rom; find * -type f; find * -type l;)
do {
- ln -sf /rom/$file $file
+ [ "${file%/*}" = "usr/lib/ipkg/info" ] && {
+ cp -f /rom/$file $file
+ } || {
+ ln -sf /rom/$file $file
+ }
} done
echo "done"
} done
echo "done"
This page took
0.020863 seconds
and
4
git commands to generate.