summaryrefslogtreecommitdiff
path: root/openwrt/package/base-files/default/etc/init.d
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-20 19:58:40 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-20 19:58:40 +0000
commit18e309aa929423cace2216c5bcfa18fe4b15d7c2 (patch)
treec955985cd7d6588cb3e96865f49181f809cf2b85 /openwrt/package/base-files/default/etc/init.d
parente605864542f2b5fc8be6ac00a0eeae170fc47983 (diff)
updates from whiterussian
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1504 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/base-files/default/etc/init.d')
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/S10boot5
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/S45firewall1
-rwxr-xr-xopenwrt/package/base-files/default/etc/init.d/rcS7
3 files changed, 8 insertions, 5 deletions
diff --git a/openwrt/package/base-files/default/etc/init.d/S10boot b/openwrt/package/base-files/default/etc/init.d/S10boot
index 22096d5fbb..ead73521b1 100755
--- a/openwrt/package/base-files/default/etc/init.d/S10boot
+++ b/openwrt/package/base-files/default/etc/init.d/S10boot
@@ -16,7 +16,8 @@ touch /var/log/lastlog
# if they don't already exist
[ "$(nvram get boardtype)" = "bcm95365r" \
-a "$(nvram get boardnum)" = "45" \
--a -z "$(nvram get vlan0ports)$(nvram get vlan1ports)" ] && {
+-a -z "$(nvram get vlan0ports)"
+-a -z "$(nvram get vlan1ports)" ] && {
nvram set vlan0ports="1 2 3 4 5*"
nvram set vlan1ports="0 5"
}
@@ -33,6 +34,6 @@ echo ${HOSTNAME:=OpenWrt}>/proc/sys/kernel/hostname
vconfig set_name_type VLAN_PLUS_VID_NO_PAD
# automagically run firstboot
-[ -z "$FAILSAFE" ] && {
+[ -z "$FAILSAFE" -a -z "$(nvram get no_root_swap)" ] && {
{ mount|grep "on / type jffs2" 1>&-; } || firstboot
}
diff --git a/openwrt/package/base-files/default/etc/init.d/S45firewall b/openwrt/package/base-files/default/etc/init.d/S45firewall
index 8350ccbfef..cb779792d5 100755
--- a/openwrt/package/base-files/default/etc/init.d/S45firewall
+++ b/openwrt/package/base-files/default/etc/init.d/S45firewall
@@ -1,6 +1,7 @@
#!/bin/sh
## Please make changes in /etc/firewall.user
+${FAILSAFE:+exit}
. /etc/functions.sh
WAN=$(nvram get wan_ifname)
diff --git a/openwrt/package/base-files/default/etc/init.d/rcS b/openwrt/package/base-files/default/etc/init.d/rcS
index e6daddc593..706585801c 100755
--- a/openwrt/package/base-files/default/etc/init.d/rcS
+++ b/openwrt/package/base-files/default/etc/init.d/rcS
@@ -1,8 +1,9 @@
#!/bin/sh
-syslogd -C 16
+syslog_ip=$(nvram get log_ipaddr)
+ipcalc -s "$syslog_ip" || syslog_ip=""
+syslogd -C 16 ${syslog_ip:+-L -R $syslog_ip}
klogd
-${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit}
-
+#${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit}
for i in /etc/init.d/S*; do
$i start 2>&1
done | logger -s -p 6 -t '' &