projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix openswan -- do NOT strip the kernel modules
[openwrt.git]
/
root
/
bin
/
firstboot
diff --git
a/root/bin/firstboot
b/root/bin/firstboot
index
f28a042
..
5076d1c
100755
(executable)
--- a/
root/bin/firstboot
+++ b/
root/bin/firstboot
@@
-1,7
+1,6
@@
#!/bin/sh
# $Id$
#!/bin/sh
# $Id$
-exec 2>/dev/null
[ -f "/tmp/.firstboot" ] && {
echo "firstboot is already running"
[ -f "/tmp/.firstboot" ] && {
echo "firstboot is already running"
@@
-13,7
+12,7
@@
jdev=$(mount | awk '/jffs2/ {print $3}')
if [ -z "$jdev" ]; then
echo -n "Creating jffs2 partition... "
if [ -z "$jdev" ]; then
echo -n "Creating jffs2 partition... "
- mtd erase OpenWrt >-
+ mtd erase OpenWrt >
&
-
mount -t jffs2 /dev/mtdblock/4 /jffs
echo "done"
cd /jffs
mount -t jffs2 /dev/mtdblock/4 /jffs
echo "done"
cd /jffs
@@
-23,6
+22,8
@@
else
cd $jdev
fi
cd $jdev
fi
+exec 2>/dev/null
+
mount /dev/mtdblock/2 /rom -o ro
echo -n "creating directories... "
mount /dev/mtdblock/2 /rom -o ro
echo -n "creating directories... "
This page took
0.025187 seconds
and
4
git commands to generate.