English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/shorewall/files/shorewall.init

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2766 - (show annotations) (download)
Mon Jun 11 23:24:02 2007 UTC (6 years, 8 months ago) by tha
File size: 489 byte(s)
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)


1 #!/bin/sh
2
3 . /etc/rc.conf
4
5 case $1 in
6 autostart)
7 test x"$shorewall" != x"YES" && exit 0
8 exec $0 start
9 ;;
10 start)
11 /sbin/shorewall -f start 1>/dev/null
12 ;;
13 stop)
14 if /sbin/shorewall status 1>/dev/null
15 then
16 /sbin/shorewall stop 1>/dev/null
17 fi
18 ;;
19 restart)
20 if [ -f /var/lib/shorewall/restore ] ; then
21 /sbin/shorewall restore
22 else
23 /sbin/shorewall restart 1>/dev/null
24 fi
25 ;;
26 clear)
27 /sbin/shorewall clear
28 ;;
29 *)
30 echo "Usage: $0 {start|stop|restart|clear}"
31 ;;
32 esac
33 exit $?

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20