]> git.pld-linux.org Git - packages/dchub.git/commitdiff
- adapterized dchub.init to pld
authorAndrzej Augustynowicz <andrzej@augustynowicz.eu.org>
Sat, 13 Dec 2003 01:27:16 +0000 (01:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dchub-init.patch -> 1.1

dchub-init.patch [new file with mode: 0644]

diff --git a/dchub-init.patch b/dchub-init.patch
new file mode 100644 (file)
index 0000000..f2838e9
--- /dev/null
@@ -0,0 +1,47 @@
+diff -Nur old/dchub.init.in new/dchub.init.in
+--- old/dchub.init.in  2003-10-19 15:32:52.000000000 +0000
++++ new/dchub.init.in  2003-12-13 00:52:30.000000000 +0000
+@@ -43,32 +43,17 @@
+ OPTIONS="--UID=$DCHUB_UID --conf=$DCHUB_XMLCONFFILE --user=$DCHUB_XMLUSERFILE --hubpasswd=$DCHUB_HUBPASSFILE --crc=$DCHUB_CRCFILE --pscriptdir=$DCHUB_SCRIPTDIR --pscriptinit=$DCHUB_MAINSCRIPT --exprogdir=$DCHUB_EXTPROGDIR --logfile=$DCHUB_LOGFILE"
+-#
+-# Determine which kind of configuration we're using
+-#
+-system=unknown
+-if [ -f /etc/debian_version ]; then
+-    system=debian
+-elif [ -f /etc/redhat-release ]; then
+-    system=redhat
+-else
+-    echo "$0: Unknown system, please report on http://savannah.nongnu.org/support/?group=dchub" 1>&2
+-    exit 1
+-fi
+-
+-if [ $system = redhat ]; then
+-      # Source function library.
+-    . $initdir/functions
+-
+-      # Source networking configuration.
+-      . /etc/sysconfig/network
+-
+-      # Check that networking is up.
+-      [ ${NETWORKING} = "no" ] && exit 0
+-
+-      # Pull in sysconfig settings
+-      [ -f /etc/sysconfig/dchub ] && . /etc/sysconfig/dchub
+-fi
++# Source function library.
++. $initdir/functions
++
++# Source networking configuration.
++. /etc/sysconfig/network
++
++# Check that networking is up.
++[ ${NETWORKING} = "no" ] && exit 0
++
++# Pull in sysconfig settings
++[ -f /etc/sysconfig/dchub ] && . /etc/sysconfig/dchub
+ [ -x "$DCHUB" ] || exit 0
+ [ -d "$DCHUB_DBDIR" ] || exit 0
This page took 0.103989 seconds and 4 git commands to generate.