File proxy-suite-suse8x.dif of Package proxy-suite
--- ftp-proxy/rc.script.in
+++ ftp-proxy/rc.script.in 2002/07/18 23:41:35
@@ -54,35 +54,6 @@
LOG_INF="${LOGGER} -p info"
LOG_ERR="${LOGGER} -p err"
-#
-# handle SuSE systems < 8.x
-#
-if [ -f /etc/SuSE-release ] ; then
- while read line ; do
- if [ -z "${line%VERSION*}" ] ; then
- case "${line#VERSION = }" in
- [5-7]*)
- # Source SuSE rc.config
- . /etc/rc.config
-
- # SuSE < 8.0 uses START variables
- base=${0##*/}
- link=${base#*[SK][0-9][0-9]}
- [ $link = $base ] && START_FTP_PROXY=yes
- [ "$START_FTP_PROXY" = yes ] || exit 0
- ;;
- *)
- # SuSE >= 8.0 uses sysconfig/NAME
- [ -f /etc/sysconfig/clock ] && \
- . /etc/sysconfig/clock
- [ -f /etc/sysconfig/${FTP_PROXY_NAME} ] && \
- . /etc/sysconfig/${FTP_PROXY_NAME}
- ;;
- esac
- fi
- done < /etc/SuSE-release
-fi # else use defaults ...
-
# LSB compliant helper shell functions sourced from /etc/rc.status:
# rc_check check and set local and overall rc status
# rc_status check and set local and overall rc status
@@ -96,12 +67,12 @@
# I assume, the /etc/rc.status script is SuSE specific...
# -> port this script or copy rc.status from SuSE system...
#
-if [ -f /etc/rc.status ] ; then
- . /etc/rc.status
-else
- echo "$0: unable to find /etc/rc.status - you may port this script" 1>&2
- exit 1
-fi
+. /etc/rc.status
+
+# SuSE >= 8.0 uses sysconfig/NAME instead of rc.config
+[ -f /etc/sysconfig/clock ] && . /etc/sysconfig/clock
+# perhaps you may need to overide some of above variables...
+[ -f /etc/sysconfig/${FTP_PROXY_NAME} ] && . /etc/sysconfig/${FTP_PROXY_NAME}
#
# check if binary and config installed...