@@ -5,22 +5,22 @@
case $1 in
autostop) ;;
- autostart)
+autostart)
- test x"${avahi:-NO}" = x"NO" && exit 0
+ test x"${avahi:-NO}" = x"NO" && exit 0
- exec sh $0 start
+ exec sh $0 start
- ;;
+ ;;
- start)
+start)
- avahi-daemon -D
+ avahi-daemon -D
- stop)
+stop)
- avahi-daemon -k
+ avahi-daemon -k
- restart)
+restart)
- sh $0 stop
+ sh $0 stop
- sh $0 start
+ sh $0 start
- *)
+*)
- echo "usage: $0 { start | stop | reload }"
+ echo "usage: $0 { start | stop | reload }"
- exit 1
+ exit 1
esac
exit $?
@@ -10,8 +10,8 @@ autostart)
exec sh $0 start
;;
start)
- if [ ! -d /www -a ! -h /www ]; then
+ if [ ! -d /srv/www -a ! -h /srv/www ]; then
- echo "axhttpd not started. create /www first"
+ echo "axhttpd not started. create /srv/www first"
exit 0
fi
/usr/sbin/axhttpd >>/var/log/axhttpd.access
@@ -6,7 +6,7 @@
autostart)
- [[ $kbd = NO ]] && exit 0
+ test x"${kbd:-NO}" = x"NO" && exit 0
- [[ $syslogd_flags = NO ]] && exit 0
+ test x"${syslogd_flags:-NO}" = x"NO" && exit 0
- [[ $udhcpd = NO ]] && exit 0
+ test x"${udhcpd:-NO}" = x"NO" && exit 0
- [[ $watchdog = NO ]] && exit 0
+ test x"${watchdog:-NO}" = x"NO" && exit 0
@@ -1,3 +1,4 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
add_rcconf 'e.g. "eth0.1 eth1"' dhcpd_flags
+add_rcconf dhcpd dhcpd NO
@@ -5,7 +5,7 @@
- [[ $dhcpd_flags = NO ]] && exit 0
+ test x"${dhcpd:-NO}" = x"NO" && exit 0
- [[ $dnsmasq = NO ]] && exit 0
+ test x"${dnsmasq:-NO}" = x"NO" && exit 0
add_rcconf '"NO" to disable, "-C /etc/mini_httpd.conf" otherwise' mini_httpd_flags
+add_rcconf mini_httpd mini_httpd NO
@@ -7,7 +7,7 @@
- [[ $mini_httpd_flags = NO ]] && exit 0
+ test x"${mini_httpd:-NO}" = x"NO" && exit 0
- [[ $mt_daapd = NO ]] && exit 0
+ test x"${mt_daapd:-NO}" = x"NO" && exit 0
@@ -1,13 +1,12 @@
#PKG snmpd
#INIT 60
-
. /etc/rc.conf
- [[ $snmpd = NO ]] && exit 0
+ test x"${snmpd:-NO}" = x"NO" && exit 0
@@ -1,7 +1,6 @@
#PKG netperf
#INIT 70
#PKG nfs-utils
#PKG nut
#PKG olsrd
#PKG openct
#PKG openldap-slapd
- [[ $slapd = NO ]] && exit 0
+ test x"${slapd:-NO}" = x"NO" && exit 0
#PKG openntpd
#INIT 55
#PKG opensips
#PKG openssh-server
#INIT 50
- [[ $openssh = NO ]] && exit 0
+ test x"${openssh:-NO}" = x"NO" && exit 0
grep "^dropbear" /etc/rc.conf >/dev/null 2>&1 || dropbear=NO
if [[ $openssh = AUTO && $dropbear != NO ]]; then
echo openssh not starting: set to AUTO and dropbear is enabled
#PKG openswan
#PKG openvpn
#PKG osirisd
#INIT 75
#PKG p910nd
#PKG parprouted
#PKG pcsc-lite
#INIT 80
#PKG pdnsd
#PKG php-fastcgi
export PHP_FCGI_CHILDREN=''
#PKG nfacctd
#PKG pmacctd
#PKG portmap
#PKG pptpd
- [[ $privoxy = NO ]] && exit 0
+ test x"${privoxy:-NO}" = x"NO" && exit 0
#PKG proftpd
#PKG radvd
#INIT 51
#PKG rarpd
@@ -1,12 +1,11 @@
#PKG rdate
#INIT 54
autostart|start|restart)
- [[ $rdate_flags = NO ]] && exit 0
+ test x"${rdate:-NO}" = x"NO" && exit 0
rdate $rdate_flags
autostop|stop)
#PKG reaim
IPT=/usr/sbin/iptables
#PKG rng-tools
#PKG pppoe-server
#PKG pppoe-relay
#PKG rpcbind
#PKG rrdcollect
#INIT 90
#PKG samba
#PKG scanlogd
#PKG shorewall-common
#INIT 45
#PKG siproxd
#PKG snort
#PKG squid
#PKG srelay
#PKG strongswan
#PKG subversion
- [[ $svnserve = YES ]] || exit 0
+ test x"${svnserve:-NO}" = x"NO" && exit 0
#PKG syslog-ng
#INIT 05
#PKG tinyproxy
#PKG tor
#PKG ulogd
#INIT 49
#PKG uvd
#PKG vrrpd
#PKG vsftpd
#PKG watchdog
#INIT 15
#PKG wifidog
#INIT 65
#PKG xinetd