freewrt_1_0
freewrt_2_0
|
Last change
on this file since 535dcdb was 535dcdb, checked in by Ralph Paßgang <tha@…>, 19 years ago |
|
fixed a lot of startup or shutdown related problems
- added start/stop logik to S10boot, S20jggsclean & S98done
- fixed check for empty variable in vlan.pre-up (ugly erros in log)
- aiccu only gets killed when it was really running before
(otherwise it logs ugly messages to syslog)
- ntpclient packages now has an init.d script and some
reasonable default flags. if present, the serverhost comes
from /etc/ntpd.conf
- removed hotplug ntpclient script, I think it never worked
correctly
- ntpclient & openntpd are waiting 15 seconds in autostart
mode before they are executed. in bridging-wlan/lan-mode
this seems to be neccessary, because otherwise ntp(client)
cannot sync (network not really up?)
- shorewall only executes "shorewall stop" if it was started
before.
- fixed rcK script: the -k2 option was useless in our case (thx tg)
git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@2766 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100755
|
|
File size:
464 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | case $1 in
|
|---|
| 4 | autostart)
|
|---|
| 5 | exec $0 start
|
|---|
| 6 | ;;
|
|---|
| 7 | start)
|
|---|
| 8 | # if / is tmpfs, we have an old or broken jffs2
|
|---|
| 9 | # erase data partition and set flag between bootloader and kernel
|
|---|
| 10 | { mount|grep "on / type tmpfs" 1>&-; } && {
|
|---|
| 11 | mtd erase data
|
|---|
| 12 | jffs2root --clean
|
|---|
| 13 | /bin/sync && /bin/busybox reboot -f
|
|---|
| 14 | }
|
|---|
| 15 | ;;
|
|---|
| 16 | stop)
|
|---|
| 17 | echo "no stop function implemented..."
|
|---|
| 18 | ;;
|
|---|
| 19 | *)
|
|---|
| 20 | echo "Usage: $0 {start | stop }"
|
|---|
| 21 | exit 1
|
|---|
| 22 | ;;
|
|---|
| 23 | esac
|
|---|
| 24 | exit $?
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.