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/base-files/files/etc/init.d/S10boot

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: 590 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 case $1 in
4 autostart)
5 exec $0 start
6 ;;
7 start)
8 . /etc/functions.sh
9
10 [ -f /proc/jffs2_bbc ] && echo S >/proc/jffs2_bbc
11
12 mkdir -p /var/run
13 mkdir -p /var/log
14 touch /var/log/wtmp
15 touch /var/log/lastlog
16 [ "$FAILSAFE" = true ] && touch /tmp/.failsafe
17
18 load_modules /etc/modules /etc/modules.d/*
19
20 HOSTNAME=$(cat /etc/hostname)
21 HOSTNAME=${HOSTNAME%%.*}
22 echo ${HOSTNAME:=FreeWRT} >/proc/sys/kernel/hostname
23 ;;
24 stop)
25 echo "$0: no stop function implemented..."
26 ;;
27 *)
28 echo "Usage: $0 {start | stop }"
29 exit 1
30 ;;
31 esac
32 exit $?

Properties

Name Value
svn:executable

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