Browse files

use /mod/etc/init.d (refs #2145)

git-svn-id: file:///var/svn/freetz/trunk@10839 149334a1-2f27-0410-a3b9-fc62619ac1e6
  • Loading branch information...
1 parent b158050 commit 8a5e5cd6b4b08d359b219280c9dbaba0b97097a2 cuma committed Jul 19, 2013
Showing with 140 additions and 140 deletions.
  1. +2 −2 make/autofs/files/root/etc/init.d/rc.autofs
  2. +2 −2 make/avm-firewall/files/root/etc/default.avm-firewall/avm-firewall.save
  3. +5 −5 make/bind/files/root/etc/init.d/rc.bind
  4. +1 −1 make/busybox/Config.in.busybox
  5. +1 −1 make/davfs2/files/root/etc/default.davfs2/davfs2_servercrt0.def
  6. +1 −1 make/davfs2/files/root/etc/default.davfs2/davfs2_servercrt1.def
  7. +1 −1 make/davfs2/files/root/etc/default.davfs2/davfs2_servercrt2.def
  8. +1 −1 make/davfs2/files/root/etc/default.davfs2/davfs2_servercrt3.def
  9. +1 −1 make/dnsmasq/files/root/etc/default.dnsmasq/dnsmasq_extra.def
  10. +5 −5 make/dnsmasq/files/root/etc/init.d/rc.dnsmasq
  11. +1 −1 make/downloader/files/root/usr/lib/cgi-bin/downloader/downremover.cgi
  12. +1 −1 make/dtmfbox-cgi/files/root/usr/mww-dtmfbox-cgi/cgi-bin/dtmfbox_main.cgi
  13. +2 −2 make/dtmfbox/files/root/etc/init.d/rc.dtmfbox
  14. +1 −1 make/htpdate/files/root/etc/default.htpdate/htpdate.save
  15. +2 −2 make/htpdate/files/root/etc/init.d/rc.htpdate
  16. +1 −1 make/htpdate/files/root/etc/onlinechanged/10-htpdate
  17. +1 −1 make/inadyn-mt/files/root/etc/init.d/rc.inadyn-mt
  18. +1 −1 make/inetd/files/root/bin/inetdctl
  19. +1 −1 make/inetd/files/root/bin/inetdftp
  20. +1 −1 make/inetd/files/root/etc/default.inetd/inetd.save
  21. +2 −2 make/knock/files/root/etc/onlinechanged/knock
  22. +1 −1 make/mcabber/files/root/etc/default.mcabber/mcabber.save
  23. +3 −3 make/mdev/files/root/lib/mdev/session/samba
  24. +3 −3 make/mdev/files/root/lib/mdev/session/syslog
  25. +2 −2 make/mdev/files/root/lib/mdev/usb/usbcontrol
  26. +5 −5 make/mod/files/root/etc/init.d/modlibrc
  27. +1 −1 make/mod/files/root/etc/init.d/rc.ftpd
  28. +7 −7 make/mod/files/root/etc/init.d/rc.mod
  29. +1 −1 make/mod/files/root/etc/init.d/rc.smbd
  30. +1 −1 make/mod/files/root/etc/init.d/rc.telnetd
  31. +1 −1 make/mod/files/root/etc/init.d/rc.websrv
  32. +1 −1 make/mod/files/root/etc/inittab.shutdown
  33. +1 −1 make/mod/files/root/etc/profile
  34. +1 −1 make/mod/files/root/usr/bin/modhosts
  35. +1 −1 make/mod/files/root/usr/bin/modload
  36. +1 −1 make/mod/files/root/usr/bin/wrapper/dsld
  37. +1 −1 make/mod/files/root/usr/bin/wrapper/multid
  38. +2 −2 make/mod/files/root/usr/lib/cgi-bin/mod/conf/40-external.sh
  39. +10 −10 make/mod/files/root/usr/lib/libmodmount.sh
  40. +1 −1 make/mod/files/root/usr/lib/mod/service.sh
  41. +3 −3 make/mod/files/root/usr/lib/mww/page.d/conf/save_body.sh
  42. +2 −2 make/mod/files/root/usr/mww/cgi-bin/passwd_save.sh
  43. +1 −1 make/nano/files/root/etc/default.nano/nanorc.def
  44. +2 −2 make/netatalk/files/root/etc/init.d/rc.afpd
  45. +2 −2 make/netatalk/files/root/etc/init.d/rc.cnid_metad
  46. +2 −2 make/netatalk/files/root/etc/init.d/rc.netatalk
  47. +1 −1 make/opendd/files/root/etc/default.opendd/opendd.save
  48. +2 −2 make/opendd/files/root/etc/init.d/rc.opendd
  49. +1 −1 make/opendd/files/root/etc/onlinechanged/20-opendd
  50. +1 −1 make/openvpn-cgi/files/root/etc/default.openvpn/openvpn.save
  51. +1 −1 make/phpxmail/files/root/etc/default.phpxmail/phpxmail.save
  52. +1 −1 make/polipo/files/root/usr/lib/cgi-bin/polipo.cgi
  53. +1 −1 make/ppp-cgi/files/root/etc/default.ppp/ppp_observer
  54. +1 −1 make/pptp/files/root/etc/default.pptp/pptp_restart
  55. +1 −1 make/pyload/files/root/usr/lib/cgi-bin/pyload.cgi
  56. +2 −2 make/rrdstats/files/root/etc/init.d/rc.rrdstats
  57. +1 −1 make/rrdstats/files/root/usr/lib/cgi-bin/rrdstats/dt-init.cgi
  58. +3 −3 make/samba/files/root/etc/default.samba/samba.save
  59. +2 −2 make/samba/files/root/etc/init.d/rc.nmbd
  60. +2 −2 make/samba/files/root/etc/init.d/rc.samba
  61. +1 −1 make/samba/files/root/etc/init.d/rc.smbd
  62. +2 −2 make/samba/files/root/etc/samba_control
  63. +1 −1 make/siproxd/files/root/etc/default.siproxd/siproxd_conf.def
  64. +1 −1 make/siproxd/files/root/etc/default.siproxd/siproxdpwd_conf.def
  65. +1 −1 make/siproxd/files/root/etc/default.siproxd/siproxdreg_conf.def
  66. +2 −2 make/siproxd/files/root/etc/onlinechanged/siproxd
  67. +2 −2 make/smstools3/files/root/usr/lib/cgi-bin/smstools3/status.cgi
  68. +1 −1 make/sslh/files/root/etc/default.sslh/protocols.def
  69. +1 −1 make/stunnel/files/root/etc/default.stunnel/stunnel_certchain.def
  70. +1 −1 make/stunnel/files/root/etc/default.stunnel/stunnel_key.def
  71. +1 −1 make/stunnel/files/root/etc/default.stunnel/stunnel_svcs.def
  72. +1 −1 make/subversion/files/root/etc/default.subversion/subversion.inetd
  73. +1 −1 make/sundtek/files/root/usr/lib/cgi-bin/sundtek.cgi
  74. +1 −1 make/tinc/files/root/etc/default.tinc/rsa_key_priv.def
  75. +1 −1 make/tinc/files/root/etc/default.tinc/rsa_key_pub.def
  76. +1 −1 make/tinc/files/root/etc/default.tinc/server1.def
  77. +1 −1 make/tinc/files/root/etc/default.tinc/server2.def
  78. +1 −1 make/tinc/files/root/etc/default.tinc/server3.def
  79. +1 −1 make/tinc/files/root/etc/default.tinc/tinc_down.def
  80. +1 −1 make/tinc/files/root/etc/default.tinc/tinc_up.def
  81. +1 −1 make/tor/files/root/usr/lib/cgi-bin/tor.cgi
  82. +2 −2 make/vnstat-cgi/files/root/etc/init.d/rc.vnstat
  83. +1 −1 make/vnstat-cgi/files/root/usr/lib/cgi-bin/vnstat.cgi
  84. +1 −1 make/vsftpd/files/root/etc/default.vsftpd/vsftpd_conf
  85. +1 −1 make/vsftpd/files/root/etc/onlinechanged/vsftpd
  86. +1 −1 make/xmail/files/root/usr/lib/cgi-bin/xmail.cgi
View
4 make/autofs/files/root/etc/init.d/rc.autofs
@@ -34,13 +34,13 @@ config() {
start() {
modlib_startdaemon $DAEMON_BIN $AUTOFS_CMDLINE
if [ $? -eq 0 -a "$AUTOFS_EXTERNAL" == "yes" -a -r /mod/etc/external.pkg ]; then
- /etc/init.d/rc.external start $mnt_path >/dev/null 2>&1 &
+ /mod/etc/init.d/rc.external start $mnt_path >/dev/null 2>&1 &
fi
}
stop() {
if [ "$AUTOFS_EXTERNAL" == "yes" -a -r /mod/etc/external.pkg ]; then
- /etc/init.d/rc.external stop $mnt_path >/dev/null 2>&1
+ /mod/etc/init.d/rc.external stop $mnt_path >/dev/null 2>&1
fi
local current_pid="$(cat $PID_FILE 2>/dev/null)"
kill $current_pid 2>/dev/null
View
4 make/avm-firewall/files/root/etc/default.avm-firewall/avm-firewall.save
@@ -14,9 +14,9 @@ pkg_post_save()
if echo "$AVM_FIREWALL_DO_ACTIVATE" | grep -q dsld; then
[ "$AVM_FIREWALL_LOG_DROPPED" != "yes" ] && LOGD="-n" || LOGD=""
[ "$AVM_FIREWALL_LOG" == "yes" ] && LOG ="-D AVM_FW" || LOG=""
- /etc/init.d/rc.dsld set_options $LOGD $LOG
+ /mod/etc/init.d/rc.dsld set_options $LOGD $LOG
else
- [ "$AVM_FIREWALL_DO_ACTIVATE" ] && /etc/init.d/rc.dsld reload
+ [ "$AVM_FIREWALL_DO_ACTIVATE" ] && /mod/etc/init.d/rc.dsld reload
fi
if echo "$AVM_FIREWALL_DO_ACTIVATE" | grep -q ctlmgr; then
echo -n "Restarting ctlmgr ... "
View
10 make/bind/files/root/etc/init.d/rc.bind
@@ -11,20 +11,20 @@ PID_FILE=/var/run/${DAEMON_BIN}/${DAEMON_BIN}.pid
if [ "$BIND_MULTID" != "yes" -o "$FREETZ_AVMDAEMON_DISABLE_DNS" == "y" ]; then
nomultid=y
else
- [ "$(/etc/init.d/rc.multid status)" != "running" ] && nomultid=y
+ [ "$(/mod/etc/init.d/rc.multid status)" != "running" ] && nomultid=y
fi
start() {
- [ "$nomultid" != "y" ] && /etc/init.d/rc.multid stop >/dev/null
+ [ "$nomultid" != "y" ] && /mod/etc/init.d/rc.multid stop >/dev/null
modlib_startdaemon $DAEMON_BIN $BIND_CMDLINE
- [ "$nomultid" != "y" ] && /etc/init.d/rc.multid start >/dev/null
+ [ "$nomultid" != "y" ] && /mod/etc/init.d/rc.multid start >/dev/null
return 0
}
stop() {
- [ "$nomultid" != "y" ] && /etc/init.d/rc.multid stop >/dev/null
+ [ "$nomultid" != "y" ] && /mod/etc/init.d/rc.multid stop >/dev/null
kill $(cat $PID_FILE) 2>/dev/null
- [ "$nomultid" != "y" ] && /etc/init.d/rc.multid start >/dev/null
+ [ "$nomultid" != "y" ] && /mod/etc/init.d/rc.multid start >/dev/null
return 0
}
View
2 make/busybox/Config.in.busybox
@@ -5660,7 +5660,7 @@ config FREETZ_BUSYBOX_RUNLEVEL
find the current and previous system runlevel.
This applet uses utmp but does not rely on busybox supporing
- utmp on purpose. It is used by e.g. emdebian via /etc/init.d/rc.
+ utmp on purpose. It is used by e.g. emdebian via /mod/etc/init.d/rc.
config FREETZ_BUSYBOX_RX
bool "rx"
View
2 make/davfs2/files/root/etc/default.davfs2/davfs2_servercrt0.def
@@ -1,4 +1,4 @@
CAPTION='DavFS2 SSL Server Certificate for server 0.'
CONFIG_FILE='/tmp/flash/davfs2/servercrt0.pem'
-CONFIG_SAVE='modsave flash; if [ ! -z "$(pidof mount.davfs)" ]; then echo ""; /etc/init.d/rc.davfs2 reload; fi'
+CONFIG_SAVE='modsave flash; if [ ! -z "$(pidof mount.davfs)" ]; then echo ""; /mod/etc/init.d/rc.davfs2 reload; fi'
CONFIG_TYPE='text'
View
2 make/davfs2/files/root/etc/default.davfs2/davfs2_servercrt1.def
@@ -1,4 +1,4 @@
CAPTION='DavFS2 SSL Server Certificate for server 1.'
CONFIG_FILE='/tmp/flash/davfs2/servercrt1.pem'
-CONFIG_SAVE='modsave flash; if [ ! -z "$(pidof mount.davfs)" ]; then echo ""; /etc/init.d/rc.davfs2 reload; fi'
+CONFIG_SAVE='modsave flash; if [ ! -z "$(pidof mount.davfs)" ]; then echo ""; /mod/etc/init.d/rc.davfs2 reload; fi'
CONFIG_TYPE='text'
View
2 make/davfs2/files/root/etc/default.davfs2/davfs2_servercrt2.def
@@ -1,4 +1,4 @@
CAPTION='DavFS2 SSL Server Certificate for server 2.'
CONFIG_FILE='/tmp/flash/davfs2/servercrt2.pem'
-CONFIG_SAVE='modsave flash; if [ ! -z "$(pidof mount.davfs)" ]; then echo ""; /etc/init.d/rc.davfs2 reload; fi'
+CONFIG_SAVE='modsave flash; if [ ! -z "$(pidof mount.davfs)" ]; then echo ""; /mod/etc/init.d/rc.davfs2 reload; fi'
CONFIG_TYPE='text'
View
2 make/davfs2/files/root/etc/default.davfs2/davfs2_servercrt3.def
@@ -1,4 +1,4 @@
CAPTION='DavFS2 SSL Server Certificate for server 3.'
CONFIG_FILE='/tmp/flash/davfs2/servercrt3.pem'
-CONFIG_SAVE='modsave flash; if [ ! -z "$(pidof mount.davfs)" ]; then echo ""; /etc/init.d/rc.davfs2 reload; fi'
+CONFIG_SAVE='modsave flash; if [ ! -z "$(pidof mount.davfs)" ]; then echo ""; /mod/etc/init.d/rc.davfs2 reload; fi'
CONFIG_TYPE='text'
View
2 make/dnsmasq/files/root/etc/default.dnsmasq/dnsmasq_extra.def
@@ -1,5 +1,5 @@
CAPTION='Dnsmasq: $(lang de:"Experten Optionen" en:"Advanced options")'
DESCRIPTION='$(lang de:"Optional. Dnsmasq typische Syntax" en:"Optional. Dnsmasq typical syntax")'
CONFIG_FILE='/tmp/flash/dnsmasq/dnsmasq.extra'
-CONFIG_SAVE='modsave flash; /etc/init.d/rc.dnsmasq restart'
+CONFIG_SAVE='modsave flash; /mod/etc/init.d/rc.dnsmasq restart'
CONFIG_TYPE='text'
View
10 make/dnsmasq/files/root/etc/init.d/rc.dnsmasq
@@ -7,7 +7,7 @@ PID_FILE=/var/run/$DAEMON/$DAEMON.pid
[ -r /etc/options.cfg ] && . /etc/options.cfg
if [ "$FREETZ_AVMDAEMON_DISABLE_DNS" != "y" ]; then
- [ "$(/etc/init.d/rc.multid status)" != "running" -o "$DNSMASQ_MULTID_RESTART" != "yes" ] && nomultid=y
+ [ "$(/mod/etc/init.d/rc.multid status)" != "running" -o "$DNSMASQ_MULTID_RESTART" != "yes" ] && nomultid=y
else
nomultid=y
fi
@@ -17,7 +17,7 @@ config() {
}
startdaemon_pre() {
- [ "$nomultid" != "y" ] && /etc/init.d/rc.multid stop >/dev/null || true
+ [ "$nomultid" != "y" ] && /mod/etc/init.d/rc.multid stop >/dev/null || true
}
start() {
@@ -27,7 +27,7 @@ start() {
}
startdaemon_post() {
- [ "$nomultid" != "y" ] && /etc/init.d/rc.multid start >/dev/null
+ [ "$nomultid" != "y" ] && /mod/etc/init.d/rc.multid start >/dev/null
if [ ! -L "/var/flash/multid.leases" -a "$DNSMASQ_DHCP" = "yes" ]; then
rm -f /var/flash/multid.leases
@@ -46,11 +46,11 @@ startdaemon_post() {
}
stop_pre() {
- [ "$nomultid" != "y" ] && /etc/init.d/rc.multid stop >/dev/null
+ [ "$nomultid" != "y" ] && /mod/etc/init.d/rc.multid stop >/dev/null
}
stop_post() {
- [ "$nomultid" != "y" ] && /etc/init.d/rc.multid start >/dev/null
+ [ "$nomultid" != "y" ] && /mod/etc/init.d/rc.multid start >/dev/null
if [ -L "/var/flash/multid.leases" ]; then
major=$(grep tffs /proc/devices)
View
2 make/downloader/files/root/usr/lib/cgi-bin/downloader/downremover.cgi
@@ -32,7 +32,7 @@ if [ -n "$QUERY_STRING" ]; then
case $cmd in
remove)
echo -n "<pre>"
- /etc/init.d/rc.downloader remove
+ /mod/etc/init.d/rc.downloader remove
echo "</pre>"
back_button cgi downloader
;;
View
2 make/dtmfbox-cgi/files/root/usr/mww-dtmfbox-cgi/cgi-bin/dtmfbox_main.cgi
@@ -109,7 +109,7 @@ if [ "${QUERY_STRING}" != "" ]; then
$DTMFBOX_PATH/rc.dtmfbox check_busybox # Relink busybox
$DTMFBOX_PATH/rc.dtmfbox install bypath # Reinstall dtmfbox (USB/RAM)
else
- /etc/init.d/rc.dtmfbox install bypath # Reinstall dtmfbox (FREETZ)
+ /mod/etc/init.d/rc.dtmfbox install bypath # Reinstall dtmfbox (FREETZ)
fi
echo -n "</pre>"
View
4 make/dtmfbox/files/root/etc/init.d/rc.dtmfbox
@@ -292,11 +292,11 @@ install() {
ln -sf "$INSTALL_PATH" /var/dtmfbox
ln -sf "/usr/sbin/dtmfbox" "$INSTALL_PATH/dtmfbox" 2>/dev/null
ln -sf "/usr/lib/libmenu.plugin.so" "$INSTALL_PATH/libmenu.plugin.so" 2>/dev/null
- ln -sf "/etc/init.d/rc.dtmfbox" "$INSTALL_PATH/rc.dtmfbox" 2>/dev/null
+ ln -sf "/mod/etc/init.d/rc.dtmfbox" "$INSTALL_PATH/rc.dtmfbox" 2>/dev/null
ln -sf "/etc/default.dtmfbox" "$INSTALL_PATH/default" 2>/dev/null
if [ ! -f "$INSTALL_PATH/dtmfbox" ]; then cp -f "/usr/sbin/dtmfbox" "$INSTALL_PATH"; fi
if [ ! -f "$INSTALL_PATH/libmenu.plugin.so" ]; then cp -f "/usr/lib/libmenu.plugin.so" "$INSTALL_PATH"; fi
- if [ ! -f "$INSTALL_PATH/rc.dtmfbox" ]; then cp -f "/etc/init.d/rc.dtmfbox" "$INSTALL_PATH"; fi
+ if [ ! -f "$INSTALL_PATH/rc.dtmfbox" ]; then cp -f "/mod/etc/init.d/rc.dtmfbox" "$INSTALL_PATH"; fi
if [ ! -d "$INSTALL_PATH/default" ]; then cp -Rf "/etc/default.dtmfbox" "$INSTALL_PATH/default"; fi
fi
View
2 make/htpdate/files/root/etc/default.htpdate/htpdate.save
@@ -1,5 +1,5 @@
apply_changes() {
-[ "$1" == "start" ] && /etc/init.d/rc.htpdate config
+[ "$1" == "start" ] && /mod/etc/init.d/rc.htpdate config
}
rc_status() { :; }
View
4 make/htpdate/files/root/etc/init.d/rc.htpdate
@@ -27,12 +27,12 @@ run() {
set_cron() {
local HTPDATE_CRON_OLD="$(cat /tmp/cron.d/htpdate 2>/dev/null)"
if [ "$HTPDATE_ENABLED" == "yes" ]; then
- local HTPDATE_CRON_NEW="$HTPDATE_CRON_INT /etc/init.d/rc.htpdate cron"
+ local HTPDATE_CRON_NEW="$HTPDATE_CRON_INT /mod/etc/init.d/rc.htpdate cron"
fi
if [ "$HTPDATE_CRON_OLD" != "$HTPDATE_CRON_NEW" ] ; then
mkdir -p /tmp/cron.d/
echo "$HTPDATE_CRON_NEW" > /tmp/cron.d/htpdate
- /etc/init.d/rc.crond reload
+ /mod/etc/init.d/rc.crond reload
fi
run
View
2 make/htpdate/files/root/etc/onlinechanged/10-htpdate
@@ -4,6 +4,6 @@
case "$1" in
online)
- /etc/init.d/rc.htpdate run
+ /mod/etc/init.d/rc.htpdate run
;;
esac
View
2 make/inadyn-mt/files/root/etc/init.d/rc.inadyn-mt
@@ -16,7 +16,7 @@ configure () {
echo background
echo verbose $INADYN_MT_VERBOSE
- [ -x /etc/init.d/rc.syslogd ] && running=$(/etc/init.d/rc.syslogd status)
+ [ -x /mod/etc/init.d/rc.syslogd ] && running=$(/mod/etc/init.d/rc.syslogd status)
if [ "$running" = "running" ]; then
echo syslog
else
View
2 make/inetd/files/root/bin/inetdctl
@@ -9,5 +9,5 @@ usage()
# This script only controls AVM's ftpd and smbd but not Freetz samba/smbd.
[ "$1" != "enable" -a "$1" != "disable" ] && usage
[ "$2" != "ftpd" -a "$2" != "smbd" ] && usage
-[ -d /etc/default.$2 ] && /etc/init.d/rc.$2 inetd_$1
+[ -d /etc/default.$2 ] && /mod/etc/init.d/rc.$2 inetd_$1
View
2 make/inetd/files/root/bin/inetdftp
@@ -6,7 +6,7 @@ WEBDAVCONTROL=/etc/webdav_control
test -x $WEBDAVCONTROL && $WEBDAVCONTROL start >/dev/null 2>&1 &
-/sbin/ftpd $(/etc/init.d/rc.ftpd get_options)
+/sbin/ftpd $(/mod/etc/init.d/rc.ftpd get_options)
test -x $WEBDAVCONTROL && $WEBDAVCONTROL stop_last >/dev/null 2>&1 &
View
2 make/inetd/files/root/etc/default.inetd/inetd.save
@@ -1,3 +1,3 @@
pkg_apply_save() {
- /etc/init.d/rc.inetd config
+ /mod/etc/init.d/rc.inetd config
}
View
4 make/knock/files/root/etc/onlinechanged/knock
@@ -1,9 +1,9 @@
#!/bin/sh
-[ "$(/etc/init.d/rc.knock status)" != "running" ] && exit 0
+[ "$(/mod/etc/init.d/rc.knock status)" != "running" ] && exit 0
case "$1" in
online)
- [ "$(/etc/init.d/rc.knock status)" != "stopped" ] && /etc/init.d/rc.knock restart
+ [ "$(/mod/etc/init.d/rc.knock status)" != "stopped" ] && /mod/etc/init.d/rc.knock restart
;;
esac
View
2 make/mcabber/files/root/etc/default.mcabber/mcabber.save
@@ -1,5 +1,5 @@
apply_changes() {
-[ "$1" == "start" ] && /etc/init.d/rc.mcabber config
+[ "$1" == "start" ] && /mod/etc/init.d/rc.mcabber config
}
rc_status() { :; }
View
6 make/mdev/files/root/lib/mdev/session/samba
@@ -5,7 +5,7 @@
#########
. /lib/mdev/common/log
-if [ ! -x /etc/init.d/rc.samba ]; then
+if [ ! -x /mod/etc/init.d/rc.samba ]; then
log_error "samba server start/stop script not found"
exit 0
fi
@@ -126,7 +126,7 @@ reload () {
case $1 in
start)
pidof -s -o $$ smbd >/dev/null ||
- /etc/init.d/rc.samba start | log_info
+ /mod/etc/init.d/rc.samba start | log_info
mountpoint_configure
reload
;;
@@ -135,7 +135,7 @@ case $1 in
if pidof -s -o $$ smbd >/dev/null; then
if [ 1 -eq $(grep -c '^\[' $SMB_CONF 2>/dev/null || echo 1) ]; then
log_info "samba not configured"
- /etc/init.d/rc.samba stop | log_info
+ /mod/etc/init.d/rc.samba stop | log_info
else
reload
fi
View
6 make/mdev/files/root/lib/mdev/session/syslog
@@ -1,7 +1,7 @@
#!/bin/sh
. /lib/mdev/common/log
-if [ ! -x /etc/init.d/rc.syslogd ]; then
+if [ ! -x /mod/etc/init.d/rc.syslogd ]; then
log_error "syslogd server start/stop script not found"
exit 0
fi
@@ -18,7 +18,7 @@ case $1 in
cp "$msg" "$MOUNT_DST/var/log/messages"
sed -i "s,\( SYSLOGD_ALTERNATIVE_LOGFILE=\).*,\1'$MOUNT_DST/var/log/messages'," /mod/etc/conf/syslogd.cfg
- /etc/init.d/rc.syslogd restart | log_info
+ /mod/etc/init.d/rc.syslogd restart | log_info
else
log_info "syslogd: no reconfigure"
fi
@@ -27,7 +27,7 @@ case $1 in
if [ -f "$MOUNT_DST/.freetz/etc/syslogd.cfg" ]; then
log_info "syslogd: restore original configuration"
cp "$MOUNT_DST/.freetz/etc/syslogd.cfg" /mod/etc/conf
- /etc/init.d/rc.syslogd restart | log_info
+ /mod/etc/init.d/rc.syslogd restart | log_info
else
log_info "syslogd: backup configuration not found"
fi
View
4 make/mdev/files/root/lib/mdev/usb/usbcontrol
@@ -40,9 +40,9 @@ case $TYPE in
[ -d hci* ] && HCI=hci* && log_info "$channel found $HCI"
# TODO augment start/stop for HCI, no default runlevel
if [ remove = "ACTION" ]; then
- /etc/init.d/rc.bluez-utils stop $HCI
+ /mod/etc/init.d/rc.bluez-utils stop $HCI
else
- /etc/init.d/rc.bluez-utils start $HCI
+ /mod/etc/init.d/rc.bluez-utils start $HCI
fi
;;
3/1/1)
View
10 make/mod/files/root/etc/init.d/modlibrc
@@ -109,7 +109,7 @@ modlib_add_user_and_group() {
# use CONF_ENABLED for other variablename with manual/automatic/inetd in .cfg-file
modlib_check_running() {
[ -n "$FORCE_STATUS" ] && return $FORCE_STATUS
- if [ -x /etc/init.d/rc.inetd ]; then
+ if [ -x /mod/etc/init.d/rc.inetd ]; then
[ "$(eval echo \$$(echo ${CONF_ENABLED} | tr [:lower:]- [:upper:]_))" == "inetd" ] && return 5
fi
if [ -n "$DAEMON_CHECK" ]; then
@@ -208,7 +208,7 @@ modlib_start() {
echo "${DAEMON_LONG_NAME} is disabled." 1>&2
exit 1
fi
- if [ "$DAEMON_ENABLED" == "inetd" -a ! -x /etc/init.d/rc.inetd ]; then
+ if [ "$DAEMON_ENABLED" == "inetd" -a ! -x /mod/etc/init.d/rc.inetd ]; then
echo "WARNING: ${DAEMON_LONG_NAME} could not find inetd." 1>&2
fi
@@ -223,7 +223,7 @@ modlib_start() {
;;
5)
config
- /etc/init.d/rc.inetd config $DAEMON
+ /mod/etc/init.d/rc.inetd config $DAEMON
;;
*)
echo "${DAEMON_LONG_NAME} start prohibited, status is uncertain!" 1>&2
@@ -235,9 +235,9 @@ modlib_start() {
# modlib_force_start
# forces start of the daemon
modlib_force_start() {
- if [ -x /etc/init.d/rc.inetd ]; then
+ if [ -x /mod/etc/init.d/rc.inetd ]; then
config
- /etc/init.d/rc.inetd config $DAEMON
+ /mod/etc/init.d/rc.inetd config $DAEMON
fi
modlib_start
}
View
2 make/mod/files/root/etc/init.d/rc.ftpd
@@ -40,7 +40,7 @@ start() {
set_mode() {
echo $1 > $STATUS_FILE
- /etc/init.d/rc.inetd config $DAEMON
+ /mod/etc/init.d/rc.inetd config $DAEMON
}
case $1 in
View
14 make/mod/files/root/etc/init.d/rc.mod
@@ -2,7 +2,7 @@
## Store 'clean' environment for later use
# overwrite AVM's version
-env - /bin/sh -c 'VERBOSE_RC_CONF=n; . /etc/init.d/rc.conf; unset PWD; env' | sed -re 's/^([^=]+)=(.*)$/export \1='"'\2'"/ > /var/env.cache
+env - /bin/sh -c 'VERBOSE_RC_CONF=n; . /mod/etc/init.d/rc.conf; unset PWD; env' | sed -re 's/^([^=]+)=(.*)$/export \1='"'\2'"/ > /var/env.cache
DAEMON=mod
. /etc/init.d/modlibrc
@@ -20,7 +20,7 @@ start() {
for pkg in crond telnetd webcfg dsld ftpd multid swap external websrv smbd; do
local pkg_default=/etc/default.$pkg
[ -d "$pkg_default" -a ! -e "/mod${pkg_default}" ] && ln -s "$pkg_default" "/mod${pkg_default}"
- local rc="/etc/init.d/rc.$pkg"
+ local rc="/mod/etc/init.d/rc.$pkg"
[ -e "$rc" -a ! -e "/mod$rc" ] && ln -s "$rc" "/mod$rc"
done
@@ -35,18 +35,18 @@ start() {
fi
for pkg in crond telnetd webcfg dsld ftpd multid swap external websrv; do
- local rc="/etc/init.d/rc.$pkg"
+ local rc="/mod/etc/init.d/rc.$pkg"
[ -x "$rc" ] && log "$($rc)"
done
# Static Packages
- if [ -x /etc/init.d/rc.external ]; then
+ if [ -x /mod/etc/init.d/rc.external ]; then
[ "$MOD_EXTERNAL_FREETZ_SERVICES" == "yes" ] && EXTERNAL_SERVICES="$(cat /mod/etc/external.pkg 2>/dev/null)"
EXTERNAL_SERVICES=" $EXTERNAL_SERVICES $MOD_EXTERNAL_OWN_SERVICES "
fi
for pkg in $(cat /etc/static.pkg 2>/dev/null); do
[ "$pkg" = mod ] && continue
- local rc="/etc/init.d/rc.$pkg"
+ local rc="/mod/etc/init.d/rc.$pkg"
if [ -x "$rc" ]; then
if echo "$EXTERNAL_SERVICES" | grep -q " $pkg "; then
log "$pkg will be started by external."
@@ -80,7 +80,7 @@ start() {
if [ "$CONFIG_NAND" = 'y' -a -f "$MOD_EXTERNAL_DIRECTORY"/.external ] &&
df -P "$MOD_EXTERNAL_DIRECTORY" | tail -n1 | grep -q " /var/media/ftp$"; then
log "external detected on nand."
- /etc/init.d/rc.external start
+ /mod/etc/init.d/rc.external start
fi
/usr/lib/mod/menu-update
@@ -91,7 +91,7 @@ start() {
stop_helper() {
for pkg in $*; do
[ "$pkg" = mod ] && continue
- local rc="/etc/init.d/rc.$pkg"
+ local rc="/mod/etc/init.d/rc.$pkg"
[ -x "$rc" ] && log "$pkg: $($rc stop)"
done
}
View
2 make/mod/files/root/etc/init.d/rc.smbd
@@ -7,7 +7,7 @@ STATUS_FILE=/tmp/.status.$DAEMON
set_mode() {
echo $1 > $STATUS_FILE
- /etc/init.d/rc.inetd config $DAEMON
+ /mod/etc/init.d/rc.inetd config $DAEMON
}
case $1 in
View
2 make/mod/files/root/etc/init.d/rc.telnetd
@@ -36,7 +36,7 @@ case $? in
pidof telnetd >/dev/null && telnetd_phone=y
;;
5)
- if [ "$(/etc/init.d/rc.inetd status)" == "running" ]; then
+ if [ "$(/mod/etc/init.d/rc.inetd status)" == "running" ]; then
# Note negative grep doesn't necessarily mean that telnetd is started by phone.
# We could be in the process of switching telnetd to inetd-mode: the (old) inetd
# instance might still be running, the config it uses has however no telnetd entry,
View
2 make/mod/files/root/etc/init.d/rc.websrv
@@ -12,7 +12,7 @@ CONF_ENABLED=AVM_WEBSRV
. /etc/init.d/modlibrc
VERBOSE_RC_CONF=n
-. /etc/init.d/rc.conf
+. /mod/etc/init.d/rc.conf
start() {
modlib_startdaemon $DAEMON -P "$PID_FILE"
View
2 make/mod/files/root/etc/inittab.shutdown
@@ -57,7 +57,7 @@ touch /var/run/shutdown
log initiated
execnlog /tmp/flash/mod/shutdown
-execnlog /etc/init.d/rc.mod stop
+execnlog /mod/etc/init.d/rc.mod stop
execnlog /var/post_install
log unmounting
View
2 make/mod/files/root/etc/profile
@@ -1,7 +1,7 @@
# /etc/profile
#
VERBOSE_RC_CONF=n
-. /etc/init.d/rc.conf
+. /mod/etc/init.d/rc.conf
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/etc/init.d:/mod/sbin:/mod/bin:/mod/usr/sbin:/mod/usr/bin:/mod/etc/init.d
export LD_LIBRARY_PATH=/mod/lib
View
2 make/mod/files/root/usr/bin/modhosts
@@ -3,7 +3,7 @@
# Usage: modhosts [load]
VERBOSE_RC_CONF=n
-. /etc/init.d/rc.conf
+. /mod/etc/init.d/rc.conf
ar7ipaddr () {
local SEC=$1
View
2 make/mod/files/root/usr/bin/modload
@@ -54,7 +54,7 @@ for pkg in $(cat /mod/etc/static.pkg 2>/dev/null) avm; do
lnmod -d "/etc/default.$pkg"
lnmod -d "/usr/lib/cgi-bin/$pkg"
lnmod -x "/usr/lib/cgi-bin/$pkg.cgi"
- lnmod -x "/etc/init.d/rc.$pkg"
+ lnmod -x "/mod/etc/init.d/rc.$pkg"
[ -r "/mod/etc/default.$pkg/$pkg.cfg" ] && /usr/bin/modconf load "$pkg"
done
/usr/bin/modconf load avm
View
2 make/mod/files/root/usr/bin/wrapper/dsld
@@ -15,5 +15,5 @@ while [ $# -gt 0 ]; do
shift
done
-/etc/init.d/rc.dsld $dsld_mode 2>&1 | log
+/mod/etc/init.d/rc.dsld $dsld_mode 2>&1 | log
View
2 make/mod/files/root/usr/bin/wrapper/multid
@@ -23,5 +23,5 @@ if [ "$multid_mode" == "start" ]; then
done
fi
-/etc/init.d/rc.multid $multid_mode 2>&1 | log
+/mod/etc/init.d/rc.multid $multid_mode 2>&1 | log
View
4 make/mod/files/root/usr/lib/cgi-bin/mod/conf/40-external.sh
@@ -1,4 +1,4 @@
-if [ -x /etc/init.d/rc.external ]; then
+if [ -x /mod/etc/init.d/rc.external ]; then
check "$MOD_EXTERNAL_WAIT_INFINITE" yes:external_wait_infinite_00 "*":external_wait_infinite_15
sec_begin 'external'
@@ -13,7 +13,7 @@ echo "<p>"
cgi_print_textline "external_own_services" "$MOD_EXTERNAL_OWN_SERVICES" 55/255 "$(lang de:"Diese selbst definierten Dienste behandeln" en:"Manage these own services"): "
cat << EOF
<FONT SIZE=-2><br><br>
-$(lang de:"Hinweis: Namen der /etc/init.d/rc.DAEMON Dateien ohne das f&uuml;hrende rc. und mit Leerzeichen getrennt angeben. " en:"Input the names of /etc/init.d/rc.DAEMON files without rc., separated by space. ")
+$(lang de:"Hinweis: Namen der /mod/etc/init.d/rc.DAEMON Dateien ohne das f&uuml;hrende rc. und mit Leerzeichen getrennt angeben. " en:"Input the names of /mod/etc/init.d/rc.DAEMON files without rc., separated by space. ")
$(lang de:"Dies kann dazu genutzt werden um nicht externalisierte Dienste die ein USB-Ger&auml;t zum Speichern der Daten ben&ouml;tigen (wie RRDstats, Tor, bip, Xmail oder vnstat-cgi) zu starten und stoppen." en:"This would be helpful if a service is not externalized, but needs your USB-device for storing data-files (like RRDstats, Tor, bip, Xmail or vnstat-cgi).")
</FONT>
</p>
View
20 make/mod/files/root/usr/lib/libmodmount.sh
@@ -43,7 +43,7 @@ remove_swap() {
retval=21 # swap devices found
echo "$swap_devs" | while read -r swap_dev swap_type swap_size swap_used swap_prio; do
if [ "$swap_type" == "partition" ]; then
- /etc/init.d/rc.swap autostop $swap_dev
+ /mod/etc/init.d/rc.swap autostop $swap_dev
retval=$?
echo $retval > ${tmpret}
case "$retval" in
@@ -124,7 +124,7 @@ mount_fs() {
[ -x "$ntfs_bin" ] && { $ntfs_bin $dev_node $mnt_path -o force ; err_mo=$? ; } || err_mo=111
;;
swap)
- /etc/init.d/rc.swap autostart $dev_node
+ /mod/etc/init.d/rc.swap autostart $dev_node
err_mo=$((17+$?))
;;
*) # fs type unknown
@@ -141,7 +141,7 @@ mount_fs() {
# separated from do_mount since fw 04.89
do_mount_locked() {
local mnt_failure=0
- local rcftpd="/etc/init.d/rc.ftpd"
+ local rcftpd="/mod/etc/init.d/rc.ftpd"
local fritznasdb_control="/etc/fritznasdb_control"
local tammnt="/var/tam/mount"
local mnt_rw=rw
@@ -176,10 +176,10 @@ do_mount_locked() {
if [ -x $rcftpd ]; then # start/enable ftpd
[ -x "$(which inetdctl)" ] && inetdctl enable ftpd || $rcftpd start
fi
- /etc/init.d/rc.swap autostart $mnt_path # swap
+ /mod/etc/init.d/rc.swap autostart $mnt_path # swap
local autorun="$mnt_path/autorun.sh"
[ "$MOD_STOR_AUTORUNEND" == "yes" -a -x $autorun ] && $autorun & # autorun
- [ -r /mod/etc/external.pkg ] && /etc/init.d/rc.external start $mnt_path & # external
+ [ -r /mod/etc/external.pkg ] && /mod/etc/init.d/rc.external start $mnt_path & # external
[ -x $TR069START ] && $TR069START $mnt_name # tr069
[ -x /etc/samba_control ] && /etc/samba_control reconfig # SAMBA reconfiguration
[ -p $tammnt ] && echo "m$mnt_path" > $tammnt # tam
@@ -260,8 +260,8 @@ do_mount_locked() {
# used by /etc/hotplug/storage
# separated from do_umount() since FW XX.04.86
do_umount_locked() {
- local rcftpd="/etc/init.d/rc.ftpd"
- local rcsmbd="/etc/init.d/rc.smbd"
+ local rcftpd="/mod/etc/init.d/rc.ftpd"
+ local rcsmbd="/mod/etc/init.d/rc.smbd"
local fritznasdb_control="/etc/fritznasdb_control"
local kill_daemon=""
local ftpd_needs_start=0
@@ -272,8 +272,8 @@ do_umount_locked() {
local autoend="$mnt_path/autoend.sh"
local mnt_dev=`grep -m 1 "$mnt_path" /proc/mounts | sed 's/ .*//'` # /dev/sdXY
[ "$MOD_STOR_AUTORUNEND" == "yes" -a -x $autoend ] && $autoend # autoend
- [ -r /mod/etc/external.pkg ] && /etc/init.d/rc.external stop $mnt_path # external
- /etc/init.d/rc.swap autostop $mnt_path # swap
+ [ -r /mod/etc/external.pkg ] && /mod/etc/init.d/rc.external stop $mnt_path # external
+ /mod/etc/init.d/rc.swap autostop $mnt_path # swap
if [ -x $fritznasdb_control ]; then
$fritznasdb_control lost_partition $mnt_path # fritznasdb
msgsend upnpd plugin notify libmediasrv.so "lost_partition:$mnt_path" # medisrv
@@ -435,7 +435,7 @@ hd_spindown_control() {
# of /etc/hotplug/storage
# reload storage media
storage_reload() {
- local rcftpd="/etc/init.d/rc.ftpd"
+ local rcftpd="/mod/etc/init.d/rc.ftpd"
[ -d /var/media ] || return 0
[ -x $rcftpd ] && $rcftpd restart
hd_spindown_control loadconfig
View
2 make/mod/files/root/usr/lib/mod/service.sh
@@ -110,6 +110,6 @@ unset inetd_status
inetd_status() {
if [ -e /etc/default.inetd/inetd.cfg ]; then
- /etc/init.d/rc.inetd status 2> /dev/null
+ /mod/etc/init.d/rc.inetd status 2> /dev/null
fi
}
View
6 make/mod/files/root/usr/lib/mww/page.d/conf/save_body.sh
@@ -9,7 +9,7 @@ start_stop() {
case "$startORstop" in
start)
local newstatus=$(rc_status ${4-$2})
- [ "$oldstatus" == inetd -a "$newstatus" != inetd ] && /etc/init.d/rc.inetd config "$package"
+ [ "$oldstatus" == inetd -a "$newstatus" != inetd ] && /mod/etc/init.d/rc.inetd config "$package"
# NB: This changes daemon's status when switching to inetd mode
# and daemon was stopped before. Please review when dynamic
@@ -34,7 +34,7 @@ apply_changes() {
mod)
start_stop $startORstop swap "$OLDSTATUS_swap"
# external
- if [ -x /etc/init.d/rc.external ]; then
+ if [ -x /mod/etc/init.d/rc.external ]; then
if [ "$startORstop" == "stop" ]; then
NEW_EXTERNAL_DIRECTORY="$(echo "$settings" | sed -ne "/MOD_EXTERNAL_DIRECTORY/s/MOD_EXTERNAL_DIRECTORY='\(.*\)'/\1/p")"
[ "$MOD_EXTERNAL_DIRECTORY" != "$NEW_EXTERNAL_DIRECTORY" ] && RELOAD_external="true"
@@ -44,7 +44,7 @@ apply_changes() {
#webcfg
if [ "$startORstop" == "start" -a "$OLDSTATUS_webcfg" != "stopped" ]; then
echo "$(lang de:"Starte das Freetz-Webinterface in 9 Sekunden neu" en:"Restarting the Freetz webinterface in 9 seconds")!"
- /etc/init.d/rc.webcfg force-restart 9 >/dev/null 2>&1 &
+ /mod/etc/init.d/rc.webcfg force-restart 9 >/dev/null 2>&1 &
fi
/usr/lib/mod/reg-status reload
/usr/bin/modhosts load
View
4 make/mod/files/root/usr/mww/cgi-bin/passwd_save.sh
@@ -18,7 +18,7 @@ if [ "$result" -ne 0 ]; then
else
echo '<h1>$(lang de:"Passwort erfolgreich ge&auml;ndert." en:"New password set.")</h1>'
echo '<p>$(lang de:"Starte Weboberfl&auml;che neu ..." en:"Restarting webcfg ...")</p>'
- /etc/init.d/rc.webcfg restart > /dev/null 2>&1
+ /mod/etc/init.d/rc.webcfg restart > /dev/null 2>&1
#XMail admin account
if [ -x /usr/lib/MailRoot/bin/XMCrypt ]; then
@@ -35,7 +35,7 @@ else
echo -e "\"$MOD_HTTPD_USER\"\t\"$xmcryptpass\""
) > $XMAIL_MAILLOCATION/ctrlaccounts.tab
- #/etc/init.d/rc.xmail restart
+ #/mod/etc/init.d/rc.xmail restart
#PHPXmail server.php
[ -d /usr/mww/phpxmail ] && (
View
2 make/nano/files/root/etc/default.nano/nanorc.def
@@ -12,5 +12,5 @@ en:"Set standard behavior of nano with this file. Take a look into the
(e.g. &quot;<i>brackets</i>&quot; only when compiled with &quot;<i>justify</i>&quot;). Freetz enables syntax
highlighting files found in <i>/usr/share/nano</i> for you, particularly those selected in <i>make menuconfig</i>.")'
CONFIG_FILE='/tmp/flash/nano/nanorc'
-CONFIG_SAVE='modsave flash; /etc/init.d/rc.nano config'
+CONFIG_SAVE='modsave flash; /mod/etc/init.d/rc.nano config'
CONFIG_TYPE='text'
View
4 make/netatalk/files/root/etc/init.d/rc.afpd
@@ -18,7 +18,7 @@ case $1 in
""|load)
mkdir -p /mod/etc/netatalk
if [ ! -e /var/mod/etc/init.d/rc.$DAEMON_BIN ]; then
- ln -s /etc/init.d/rc.$DAEMON_BIN /var/mod/etc/init.d/rc.$DAEMON_BIN
+ ln -s /mod/etc/init.d/rc.$DAEMON_BIN /var/mod/etc/init.d/rc.$DAEMON_BIN
fi
modreg daemon -h -n netatalk-afpd -r rc.$DAEMON_BIN -p netatalk afpd
@@ -44,7 +44,7 @@ case $1 in
modlib_status
;;
config)
- /etc/init.d/rc.netatalk config
+ /mod/etc/init.d/rc.netatalk config
;;
*)
echo "Usage: $0 [load|unload|start|stop|restart|reload|status|config]" 1>&2
View
4 make/netatalk/files/root/etc/init.d/rc.cnid_metad
@@ -15,7 +15,7 @@ start() {
case $1 in
""|load)
if [ ! -e /var/mod/etc/init.d/rc.$DAEMON_BIN ]; then
- ln -s /etc/init.d/rc.$DAEMON_BIN /var/mod/etc/init.d/rc.$DAEMON_BIN
+ ln -s /mod/etc/init.d/rc.$DAEMON_BIN /var/mod/etc/init.d/rc.$DAEMON_BIN
fi
modreg daemon -h -n netatalk-cnid_metad -r rc.$DAEMON_BIN -p netatalk cnid_metad
@@ -41,7 +41,7 @@ case $1 in
modlib_status
;;
config)
- /etc/init.d/rc.netatalk config
+ /mod/etc/init.d/rc.netatalk config
;;
*)
echo "Usage: $0 [load|unload|start|stop|restart|reload|status|config]" 1>&2
View
4 make/netatalk/files/root/etc/init.d/rc.netatalk
@@ -5,11 +5,11 @@ DAEMON_LONG_NAME=Netatalk
. /etc/init.d/modlibrc
do_afpd() {
- /etc/init.d/rc.afpd $1
+ /mod/etc/init.d/rc.afpd $1
}
do_cnid_metad() {
- /etc/init.d/rc.cnid_metad $1
+ /mod/etc/init.d/rc.cnid_metad $1
}
config() {
View
2 make/opendd/files/root/etc/default.opendd/opendd.save
@@ -1,5 +1,5 @@
apply_changes() {
-[ "$1" == "start" ] && /etc/init.d/rc.opendd config
+[ "$1" == "start" ] && /mod/etc/init.d/rc.opendd config
}
rc_status() { :; }
View
4 make/opendd/files/root/etc/init.d/rc.opendd
@@ -7,12 +7,12 @@ DAEMON_LONG_NAME=OpenDD
set_cron() {
CRON_OLD="$(cat /tmp/cron.d/opendd 2>/dev/null)"
if [ "$OPENDD_ENABLED" == "yes" -a "$OPENDD_FORCE_UPDATE" == "yes" ]; then
- CRON_NEW="45 5 * * * /etc/init.d/rc.opendd cron"
+ CRON_NEW="45 5 * * * /mod/etc/init.d/rc.opendd cron"
fi
if [ "$CRON_OLD" != "$CRON_NEW" ] ; then
mkdir -p /tmp/cron.d/
echo "$CRON_NEW" > /tmp/cron.d/opendd
- /etc/init.d/rc.crond reload
+ /mod/etc/init.d/rc.crond reload
fi
}
View
2 make/opendd/files/root/etc/onlinechanged/20-opendd
@@ -4,6 +4,6 @@
case "$1" in
online)
- /etc/init.d/rc.opendd run
+ /mod/etc/init.d/rc.opendd run
;;
esac
View
2 make/openvpn-cgi/files/root/etc/default.openvpn/openvpn.save
@@ -31,5 +31,5 @@ pkg_post_save() {
echo "Generated config for openvpn"
fi
# enable/disable inetd
- [ -x /etc/init.d/rc.inetd ] && /etc/init.d/rc.inetd config openvpn
+ [ -x /mod/etc/init.d/rc.inetd ] && /mod/etc/init.d/rc.inetd config openvpn
}
View
2 make/phpxmail/files/root/etc/default.phpxmail/phpxmail.save
@@ -1,5 +1,5 @@
apply_changes() {
-[ "$1" == "start" ] && /etc/init.d/rc.phpxmail config
+[ "$1" == "start" ] && /mod/etc/init.d/rc.phpxmail config
}
rc_status() { :; }
View
2 make/polipo/files/root/usr/lib/cgi-bin/polipo.cgi
@@ -58,7 +58,7 @@ cat << EOF
</tr>
</table>
EOF
-if [ "running" == "$(/etc/init.d/rc.polipo status)" ] && [ "true" != "$POLIPO_DISABLELOCALINTERFACE" ]; then
+if [ "running" == "$(/mod/etc/init.d/rc.polipo status)" ] && [ "true" != "$POLIPO_DISABLELOCALINTERFACE" ]; then
echo "<p><a href=http://$(self_host):$(html "$POLIPO_PORT")/polipo/ target=_ >Link $(lang de:"zur" en:"to") Polipo GUI</a></p>"
fi
View
2 make/ppp-cgi/files/root/etc/default.ppp/ppp_observer
@@ -15,7 +15,7 @@ bisbald () {
HURET=1
while [ $HURET -ne 0 ]; do
[ "$PPP_FALLBACK" != 'yes' ] || echo -e "\n$(date): HANGUP" >> $PPP_FABALOG
- /etc/init.d/rc.ppp disconnect
+ /mod/etc/init.d/rc.ppp disconnect
HURET=$?
done
}
View
2 make/pptp/files/root/etc/default.pptp/pptp_restart
@@ -12,7 +12,7 @@ do
esac
sleep $wait
if [ -z "$(pidof pptp)" ]; then
- /etc/init.d/rc.pptp start 1>&2
+ /mod/etc/init.d/rc.pptp start 1>&2
sleep 3
fi
done
View
2 make/pyload/files/root/usr/lib/cgi-bin/pyload.cgi
@@ -14,7 +14,7 @@ sec_end
#
pyweb="$(sed -n '/^webinterface -/{N;N;N;N;N;N;N;N;N;s/.*"Activated" = \([a-zA-Z]*\).*/\1/p}' /mod/pyload/pyload.conf 2>/dev/null)"
-if [ "$pyweb" == "True" -a "$(/etc/init.d/rc.pyload status)" == "running" ]; then
+if [ "$pyweb" == "True" -a "$(/mod/etc/init.d/rc.pyload status)" == "running" ]; then
sec_begin '$(lang de:"Anzeigen" en:"Show")'
cat << EOF
View
4 make/rrdstats/files/root/etc/init.d/rc.rrdstats
@@ -47,7 +47,7 @@ start() {
if [ -x "$(which digitemp)" -a "$RRDSTATS_DIGITEMP_HTTP" = "yes" -a "$RRDSTATS_DIGITEMP_INETD" != "yes" ]; then
webcfg-one -P "$HTTPD_PID_ONE"
fi
- [ -x /etc/init.d/rc.inetd ] && /etc/init.d/rc.inetd config rrdstats
+ [ -x /mod/etc/init.d/rc.inetd ] && /mod/etc/init.d/rc.inetd config rrdstats
modreg status rrdstats RRDstats stats
}
@@ -62,7 +62,7 @@ stop_post() {
stop_status() {
kill -9 "$(cat $HTTPD_PID_RRD 2>/dev/null)" 2>/dev/null
kill -9 "$(cat $HTTPD_PID_ONE 2>/dev/null)" 2>/dev/null
- [ -x /etc/init.d/rc.inetd ] && /etc/init.d/rc.inetd config rrdstats >/dev/null
+ [ -x /mod/etc/init.d/rc.inetd ] && /mod/etc/init.d/rc.inetd config rrdstats >/dev/null
modunreg status rrdstats rrddt
modunreg status rrdstats stats
}
View
2 make/rrdstats/files/root/usr/lib/cgi-bin/rrdstats/dt-init.cgi
@@ -11,7 +11,7 @@ echo "<p>$(lang de:"Initialisiere DigiTemp" en:"Initializing DigiTemp") ... $(la
echo -n '<pre>'
{
- /etc/init.d/rc.rrdstats stop
+ /mod/etc/init.d/rc.rrdstats stop
killall digitemp >/dev/null 2>&1
mkdir -p /tmp/flash/rrdstats
cd /tmp
View
6 make/samba/files/root/etc/default.samba/samba.save
@@ -1,8 +1,8 @@
apply_changes()
{
- [ -x /etc/init.d/rc.nmbd ] && start_stop $1 $2 $nmbd_oldstatus nmbd
+ [ -x /mod/etc/init.d/rc.nmbd ] && start_stop $1 $2 $nmbd_oldstatus nmbd
start_stop $1 $2 $smbd_oldstatus smbd
}
-[ -x /etc/init.d/rc.nmbd ] && nmbd_oldstatus=$(/etc/init.d/rc.nmbd status)
-smbd_oldstatus=$(/etc/init.d/rc.smbd status)
+[ -x /mod/etc/init.d/rc.nmbd ] && nmbd_oldstatus=$(/mod/etc/init.d/rc.nmbd status)
+smbd_oldstatus=$(/mod/etc/init.d/rc.smbd status)
View
4 make/samba/files/root/etc/init.d/rc.nmbd
@@ -8,7 +8,7 @@ CONF_ENABLED=SAMBA_NMBD_ENABLED
. /etc/init.d/modlibrc
config() {
- /etc/init.d/rc.samba config
+ /mod/etc/init.d/rc.samba config
}
start() {
@@ -18,7 +18,7 @@ start() {
case $1 in
""|load)
if [ ! -e /var/mod/etc/init.d/rc.$DAEMON_BIN ]; then
- ln -s /etc/init.d/rc.$DAEMON_BIN /var/mod/etc/init.d/rc.$DAEMON_BIN
+ ln -s /mod/etc/init.d/rc.$DAEMON_BIN /var/mod/etc/init.d/rc.$DAEMON_BIN
fi
modreg daemon -n samba-nmbd -r rc.$DAEMON_BIN -p samba nmbd
View
4 make/samba/files/root/etc/init.d/rc.samba
@@ -6,11 +6,11 @@ DAEMON_CONFIG=/mod/etc/samba/smb.conf
. /etc/init.d/modlibrc
do_smbd() {
- /etc/init.d/rc.smbd $1
+ /mod/etc/init.d/rc.smbd $1
}
do_nmbd() {
- [ -x "$(which nmbd)" -o -L "$(which nmbd)" ] && /etc/init.d/rc.nmbd $1
+ [ -x "$(which nmbd)" -o -L "$(which nmbd)" ] && /mod/etc/init.d/rc.nmbd $1
}
config() {
View
2 make/samba/files/root/etc/init.d/rc.smbd
@@ -8,7 +8,7 @@ DAEMON_CONFIG=/mod/etc/samba/smb.conf
config() {
- /etc/init.d/rc.samba config
+ /mod/etc/init.d/rc.samba config
}
start() {
View
4 make/samba/files/root/etc/samba_control
@@ -19,8 +19,8 @@ if [ $# -ge 2 ]; then
done
fi
-/etc/init.d/rc.smbd config
-if [ "$(/etc/init.d/rc.smbd status 2>/dev/null)" != "disabled" ]; then
+/mod/etc/init.d/rc.smbd config
+if [ "$(/mod/etc/init.d/rc.smbd status 2>/dev/null)" != "disabled" ]; then
killall -HUP smbd
fi
View
2 make/siproxd/files/root/etc/default.siproxd/siproxd_conf.def
@@ -1,4 +1,4 @@
CONFIG_FILE='/tmp/flash/siproxd/siproxd.conf'
-CONFIG_SAVE='modsave flash; if [ "$(/etc/init.d/rc.siproxd status)" = "running" ]; then /etc/init.d/rc.siproxd restart; fi;'
+CONFIG_SAVE='modsave flash; if [ "$(/mod/etc/init.d/rc.siproxd status)" = "running" ]; then /mod/etc/init.d/rc.siproxd restart; fi;'
CONFIG_TYPE='text'
CAPTION='Siproxd: siproxd.conf'
View
2 make/siproxd/files/root/etc/default.siproxd/siproxdpwd_conf.def
@@ -1,4 +1,4 @@
CONFIG_FILE='/tmp/flash/siproxd/siproxd.pwd'
-CONFIG_SAVE='modsave flash; if [ "$(/etc/init.d/rc.siproxd status)" = "running" ]; then /etc/init.d/rc.siproxd restart; fi;'
+CONFIG_SAVE='modsave flash; if [ "$(/mod/etc/init.d/rc.siproxd status)" = "running" ]; then /mod/etc/init.d/rc.siproxd restart; fi;'
CONFIG_TYPE='text'
CAPTION='Siproxd: siproxd.pwd'
View
2 make/siproxd/files/root/etc/default.siproxd/siproxdreg_conf.def
@@ -1,4 +1,4 @@
CONFIG_FILE='/tmp/flash/siproxd/siproxd.reg'
-CONFIG_SAVE='modsave flash; if [ "$(/etc/init.d/rc.siproxd status)" = "running" ]; then /etc/init.d/rc.siproxd restart; fi;'
+CONFIG_SAVE='modsave flash; if [ "$(/mod/etc/init.d/rc.siproxd status)" = "running" ]; then /mod/etc/init.d/rc.siproxd restart; fi;'
CONFIG_TYPE='text'
CAPTION='Siproxd: siproxd.reg'
View
4 make/siproxd/files/root/etc/onlinechanged/siproxd
@@ -1,9 +1,9 @@
#!/bin/sh
-[ "$(/etc/init.d/rc.siproxd status)" != "running" ] && exit 0
+[ "$(/mod/etc/init.d/rc.siproxd status)" != "running" ] && exit 0
case "$1" in
online)
- [ "$(/etc/init.d/rc.siproxd status)" != "stopped" ] && /etc/init.d/rc.siproxd restart
+ [ "$(/mod/etc/init.d/rc.siproxd status)" != "stopped" ] && /mod/etc/init.d/rc.siproxd restart
;;
esac
View
4 make/smstools3/files/root/usr/lib/cgi-bin/smstools3/status.cgi
@@ -7,13 +7,13 @@ eval "$(modcgi branding:pkg:number:message:flash mod_cgi)"
if [ -n "$MOD_CGI_NUMBER" -a "$MOD_CGI_NUMBER" != "+49" ]; then
sec_begin '$(lang de:"Hinweis" en:"Remark")'
echo "<font color=red><br>"
- /etc/init.d/rc.smstools3 sendsms $MOD_CGI_FLASH $MOD_CGI_NUMBER $MOD_CGI_MESSAGE
+ /mod/etc/init.d/rc.smstools3 sendsms $MOD_CGI_FLASH $MOD_CGI_NUMBER $MOD_CGI_MESSAGE
echo "</font>"
sec_end
fi
list_sms() {
- /etc/init.d/rc.smstools3 listsms $1 | sed 's/$/<br>/g'
+ /mod/etc/init.d/rc.smstools3 listsms $1 | sed 's/$/<br>/g'
}
sec_begin '$(lang de:"SMS versenden" en:"Send SMS")'
View
2 make/sslh/files/root/etc/default.sslh/protocols.def
@@ -1,7 +1,7 @@
CAPTION="SSLH: $(lang de:"Protokolle" en:"Protocols")"
CONFIG_FILE="/tmp/flash/sslh/protocols"
-CONFIG_SAVE='modsave flash; [ "$(/etc/init.d/rc.sslh status)" != "stopped" ] && /etc/init.d/rc.sslh restart'
+CONFIG_SAVE='modsave flash; [ "$(/mod/etc/init.d/rc.sslh status)" != "stopped" ] && /mod/etc/init.d/rc.sslh restart'
CONFIG_TYPE='text'
TEXT_ROWS=30
View
2 make/stunnel/files/root/etc/default.stunnel/stunnel_certchain.def
@@ -2,5 +2,5 @@ CAPTION='Stunnel: $(lang de:"Zertifikats-Kette" en:"certificate chain")'
DESCRIPTION='$(lang de:"Hier wird die .pem Datei mit der Zertifikats-Kette (�ffentliche Schl�ssel) hinterlegt. Diese Datei kann in der <i>cert</i> Option mit dem Wert '/tmp/flash/.stunnel/certs.pem' unter den Stunnel-Diensten verwendet werden.<br/>Weitere Informationen sind in der <a href='http://www.stunnel.org/faq/stunnel.html#item_cert__3d_pemfile' target='_blank'>Stunnel FAQ</a> zu finden." en:"The .pem file for the certificate chain (public keys) is saved here. This file can be used for the <i>certs</i> option with the value '/tmp/flash/.stunnel/certs.pem' for the stunnel services.<br/>More infos about this file can be found in the <a href='http://www.stunnel.org/faq/stunnel.html#item_cert__3d_pemfile' target='_blank'>Stunnel FAQ</a>.")'
CONFIG_FILE='/tmp/flash/stunnel/certs.pem'
-CONFIG_SAVE='chmod 600 /tmp/flash/stunnel/certs.pem; modsave flash; [ "$(/etc/init.d/rc.stunnel status)" != "stopped" ] && /etc/init.d/rc.stunnel restart'
+CONFIG_SAVE='chmod 600 /tmp/flash/stunnel/certs.pem; modsave flash; [ "$(/mod/etc/init.d/rc.stunnel status)" != "stopped" ] && /mod/etc/init.d/rc.stunnel restart'
CONFIG_TYPE='text'
View
2 make/stunnel/files/root/etc/default.stunnel/stunnel_key.def
@@ -2,5 +2,5 @@ CAPTION='Stunnel: $(lang de:"Privater Schl
DESCRIPTION='$(lang de:"Hier wird die .pem Datei des privaten Schl�ssels f�r den Server-Modus hinterlegt. Diese Datei kann in der <i>key</i> Option mit dem Wert '/tmp/flash/.stunnel/key.pem' unter den Stunnel-Diensten verwendet werden.<br/>Weitere Informationen sind in der <a href='http://www.stunnel.org/faq/stunnel.html#item_key__3d_keyfile' target='_blank'>Stunnel FAQ</a> zu finden." en:"The .pem private key file for the server mode is saved here. This file can be used for the <i>key</i> option with the value '/tmp/flash/.stunnel/key.pem' for the stunnel services.<br/>More infos about this file can be found in the <a href='http://www.stunnel.org/faq/stunnel.html#item_key__3d_keyfile' target='_blank'>Stunnel FAQ</a>.")'
CONFIG_FILE='/tmp/flash/stunnel/key.pem'
-CONFIG_SAVE='chmod 600 /tmp/flash/stunnel/key.pem; modsave flash; [ "$(/etc/init.d/rc.stunnel status)" != "stopped" ] && /etc/init.d/rc.stunnel restart'
+CONFIG_SAVE='chmod 600 /tmp/flash/stunnel/key.pem; modsave flash; [ "$(/mod/etc/init.d/rc.stunnel status)" != "stopped" ] && /mod/etc/init.d/rc.stunnel restart'
CONFIG_TYPE='text'
View
2 make/stunnel/files/root/etc/default.stunnel/stunnel_svcs.def
@@ -1,7 +1,7 @@
CAPTION='Stunnel: $(lang de:"Dienste" en:"services")'
CONFIG_FILE='/tmp/flash/stunnel/svcs'
-CONFIG_SAVE='modsave flash; [ "$(/etc/init.d/rc.stunnel status)" != "stopped" ] && /etc/init.d/rc.stunnel restart'
+CONFIG_SAVE='modsave flash; [ "$(/mod/etc/init.d/rc.stunnel status)" != "stopped" ] && /mod/etc/init.d/rc.stunnel restart'
CONFIG_TYPE='text'
TEXT_ROWS=30
View
2 make/subversion/files/root/etc/default.subversion/subversion.inetd
@@ -9,4 +9,4 @@ inetdcfg_flags=nowait
inetdcfg_user=$SUBVERSION_USER:$SUBVERSION_GROUP
inetdcfg_exe=/usr/bin/svnserve
inetdcfg_arg0=svnserve
-inetdcfg_args="-i --root $SUBVERSION_ROOT $(/etc/init.d/rc.subversion logfile-options)"
+inetdcfg_args="-i --root $SUBVERSION_ROOT $(/mod/etc/init.d/rc.subversion logfile-options)"
View
2 make/sundtek/files/root/usr/lib/cgi-bin/sundtek.cgi
@@ -21,7 +21,7 @@ echo -n '<pre><FONT SIZE=-1>'
mediasrv --build 2>&1 | html
echo '</FONT></pre>'
-if [ "$(/etc/init.d/rc.sundtek status 2>/dev/null)" == "running" ]; then
+if [ "$(/mod/etc/init.d/rc.sundtek status 2>/dev/null)" == "running" ]; then
echo "$(lang de:"Unterst&uuml;tzte Hardware" en:"Supported hardware"):"
echo -n '<pre><FONT SIZE=-1>'
View
2 make/tinc/files/root/etc/default.tinc/rsa_key_priv.def
@@ -2,7 +2,7 @@ CAPTION='Tinc: rsa_key.priv'
DESCRIPTION='$(lang de:"Generierung mit" en:"Generate keys with"): tincd -c /tmp/flash/tinc --generate-keys=2048 && modsave'
CONFIG_FILE='/tmp/flash/tinc/rsa_key.priv'
-CONFIG_SAVE='modsave flash; [ "$(/etc/init.d/rc.tinc status)" == "running" ] && /etc/init.d/rc.tinc restart'
+CONFIG_SAVE='modsave flash; [ "$(/mod/etc/init.d/rc.tinc status)" == "running" ] && /mod/etc/init.d/rc.tinc restart'
CONFIG_TYPE='text'
TEXT_ROWS=30
View
2 make/tinc/files/root/etc/default.tinc/rsa_key_pub.def
@@ -4,7 +4,7 @@ CAPTION="Tinc: rsa_key.pub ($TINC_SERVER0)"
DESCRIPTION='$(lang de:"Generierung mit" en:"Generate keys with"): tincd -c /tmp/flash/tinc --generate-keys=2048 && modsave'
CONFIG_FILE="/tmp/flash/tinc/hosts/$TINC_SERVER0"
-CONFIG_SAVE='modsave flash; [ "$(/etc/init.d/rc.tinc status)" == "running" ] && /etc/init.d/rc.tinc restart'
+CONFIG_SAVE='modsave flash; [ "$(/mod/etc/init.d/rc.tinc status)" == "running" ] && /mod/etc/init.d/rc.tinc restart'
CONFIG_TYPE='text'
TEXT_ROWS=30
View
2 make/tinc/files/root/etc/default.tinc/server1.def
@@ -4,7 +4,7 @@ CAPTION="Tinc: Server1 (${TINC_SERVER1:-$(lang de:"deaktiviert" en:"deactivated"
DESCRIPTION='$(lang de:"Manpage auf" en:"Manpage at") www.die.net: <a target=blank href=http://linux.die.net/man/5/tinc.conf>http://linux.die.net/man/5/tinc.conf</a>'
CONFIG_FILE="/tmp/flash/tinc/hosts/$TINC_SERVER1"
-CONFIG_SAVE='modsave flash; [ "$(/etc/init.d/rc.tinc status)" == "running" ] && /etc/init.d/rc.tinc restart'
+CONFIG_SAVE='modsave flash; [ "$(/mod/etc/init.d/rc.tinc status)" == "running" ] && /mod/etc/init.d/rc.tinc restart'
[ -z "$TINC_SERVER1" ] && CONFIG_SAVE='false'
CONFIG_TYPE='text'
View
2 make/tinc/files/root/etc/default.tinc/server2.def
@@ -4,7 +4,7 @@ CAPTION="Tinc: Server2 (${TINC_SERVER2:-$(lang de:"deaktiviert" en:"deactivated"
DESCRIPTION='$(lang de:"Manpage auf" en:"Manpage at") www.die.net: <a target=blank href=http://linux.die.net/man/5/tinc.conf>http://linux.die.net/man/5/tinc.conf</a>'
CONFIG_FILE="/tmp/flash/tinc/hosts/$TINC_SERVER2"
-CONFIG_SAVE='modsave flash; [ "$(/etc/init.d/rc.tinc status)" == "running" ] && /etc/init.d/rc.tinc restart'
+CONFIG_SAVE='modsave flash; [ "$(/mod/etc/init.d/rc.tinc status)" == "running" ] && /mod/etc/init.d/rc.tinc restart'
[ -z "$TINC_SERVER1" ] && CONFIG_SAVE='false'
CONFIG_TYPE='text'
View
2 make/tinc/files/root/etc/default.tinc/server3.def
@@ -4,7 +4,7 @@ CAPTION="Tinc: Server3 (${TINC_SERVER3:-$(lang de:"deaktiviert" en:"deactivated"
DESCRIPTION='$(lang de:"Manpage auf" en:"Manpage at") www.die.net: <a target=blank href=http://linux.die.net/man/5/tinc.conf>http://linux.die.net/man/5/tinc.conf</a>'
CONFIG_FILE="/tmp/flash/tinc/hosts/$TINC_SERVER3"
-CONFIG_SAVE='modsave flash; [ "$(/etc/init.d/rc.tinc status)" == "running" ] && /etc/init.d/rc.tinc restart'
+CONFIG_SAVE='modsave flash; [ "$(/mod/etc/init.d/rc.tinc status)" == "running" ] && /mod/etc/init.d/rc.tinc restart'
[ -z "$TINC_SERVER3" ] && CONFIG_SAVE='false'
CONFIG_TYPE='text'
View
2 make/tinc/files/root/etc/default.tinc/tinc_down.def
@@ -2,7 +2,7 @@ CAPTION='Tinc: tinc-down'
DESCRIPTION='$(lang de:"Manpage auf" en:"Manpage at") www.die.net: <a target=blank href=http://linux.die.net/man/5/tinc.conf>http://linux.die.net/man/5/tinc.conf</a>'
CONFIG_FILE='/tmp/flash/tinc/tinc-down'
-CONFIG_SAVE='chmod +x /tmp/flash/tinc/tinc-down; modsave flash; [ "$(/etc/init.d/rc.tinc status)" == "running" ] && /etc/init.d/rc.tinc restart'
+CONFIG_SAVE='chmod +x /tmp/flash/tinc/tinc-down; modsave flash; [ "$(/mod/etc/init.d/rc.tinc status)" == "running" ] && /mod/etc/init.d/rc.tinc restart'
CONFIG_TYPE='text'
TEXT_ROWS=30
View
2 make/tinc/files/root/etc/default.tinc/tinc_up.def
@@ -2,7 +2,7 @@ CAPTION='Tinc: tinc-up'
DESCRIPTION='$(lang de:"Manpage auf" en:"Manpage at") www.die.net: <a target=blank href=http://linux.die.net/man/5/tinc.conf>http://linux.die.net/man/5/tinc.conf</a>'
CONFIG_FILE='/tmp/flash/tinc/tinc-up'
-CONFIG_SAVE='chmod +x /tmp/flash/tinc/tinc-up; modsave flash; [ "$(/etc/init.d/rc.tinc status)" == "running" ] && /etc/init.d/rc.tinc restart'
+CONFIG_SAVE='chmod +x /tmp/flash/tinc/tinc-up; modsave flash; [ "$(/mod/etc/init.d/rc.tinc status)" == "running" ] && /mod/etc/init.d/rc.tinc restart'
CONFIG_TYPE='text'
TEXT_ROWS=30
View
2 make/tor/files/root/usr/lib/cgi-bin/tor.cgi
@@ -87,7 +87,7 @@ cat << EOF
<ul>
<li><a href="$(href file tor secret_id_key)">$(lang de:"Secret ID Key bearbeiten" en:"Edit secret id key")</a></li>
EOF
-if [ -x /etc/init.d/rc.avm-firewall ]; then
+if [ -x /mod/etc/init.d/rc.avm-firewall ]; then
cat << EOF
<li>$(lang de:"Lokale Portfreigaben einrichten" en:"Edit local port-forwarding"): <a href="$(href cgi avm-firewall)">$(lang de:"hier klicken" en:"click here")</a></li>
EOF
View
4 make/vnstat-cgi/files/root/etc/init.d/rc.vnstat
@@ -45,7 +45,7 @@ config() {
stop_status() {
kill -9 "$(cat $HTTPD_PID_VNS 2>/dev/null)" 2>/dev/null
- [ -x /etc/init.d/rc.inetd ] && /etc/init.d/rc.inetd config vnstat >/dev/null
+ [ -x /mod/etc/init.d/rc.inetd ] && /mod/etc/init.d/rc.inetd config vnstat >/dev/null
modunreg status vnstat stats
}
@@ -59,7 +59,7 @@ start() {
webcfg-vns -P $HTTPD_PID_VNS
fi
modlib_startdaemon $DAEMON_BIN -s -d --config /tmp/flash/vnstat/vnstat.conf
- [ -x /etc/init.d/rc.inetd ] && //etc/init.d/rc.inetd config vnstat
+ [ -x /mod/etc/init.d/rc.inetd ] && //mod/etc/init.d/rc.inetd config vnstat
modreg status vnstat vnstat stats
}
View
2 make/vnstat-cgi/files/root/usr/lib/cgi-bin/vnstat.cgi
@@ -57,7 +57,7 @@ $(lang de:"Zus&auml;tzlichen Webserver aktiveren auf Port" en:"Activate addition
EOF
if [ "$VNSTAT_WEBENABLED" = "yes" ]; then
-if [ -x /etc/init.d/rc.inetd ]; then
+if [ -x /mod/etc/init.d/rc.inetd ]; then
cat << EOF
<p>
<input type="hidden" name="web_inetd" value="no">
View
2 make/vsftpd/files/root/etc/default.vsftpd/vsftpd_conf
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ "$(/etc/init.d/rc.vsftpd status)" != "inetd" ]; then
+if [ "$(/mod/etc/init.d/rc.vsftpd status)" != "inetd" ]; then
LISTEN="yes"
else
LISTEN="no"
View
2 make/vsftpd/files/root/etc/onlinechanged/vsftpd
@@ -4,6 +4,6 @@
case "$1" in
online)
- /etc/init.d/rc.vsftpd reload
+ /mod/etc/init.d/rc.vsftpd reload
;;
esac
View
2 make/xmail/files/root/usr/lib/cgi-bin/xmail.cgi
@@ -8,7 +8,7 @@ XMAIL_SSLSUPPORT= XMAIL_SSLVISIBLE=
# Check for SSL support
/usr/lib/MailRoot/bin/CtrlClnt 2>&1 | grep -qe ' -S ' && XMAIL_SSLSUPPORT=1
# Check for installed and running PHPXmail
-[ -e /etc/init.d/rc.phpxmail ] && XMAIL_PHPXMAIL=1
+[ -e /mod/etc/init.d/rc.phpxmail ] && XMAIL_PHPXMAIL=1
check "$XMAIL_ENABLED" yes:auto "*":man
check "$XMAIL_UNPRIV" yes:unpriv

0 comments on commit 8a5e5cd

Please sign in to comment.