Index: files/quasselcore.init =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-irc/quassel/files/quasselcore.init,v retrieving revision 1.7 diff -u -B -r1.7 quasselcore.init --- files/quasselcore.init 4 Nov 2010 14:22:45 -0000 1.7 +++ files/quasselcore.init 19 Aug 2011 11:35:12 -0000 @@ -16,9 +16,7 @@ checkconfig() { # set defaults - LISTEN=${LISTEN:-"0.0.0.0"} LOGLEVEL=${LOGLEVEL:-"Info"} - PORT=${PORT:-"4242"} # check config folder if [ ! -d "${CONFIGDIR}" ]; then @@ -45,14 +43,14 @@ start-stop-daemon --start --user "${QUASSEL_USER}" --background --make-pidfile \ --pidfile "${PID}" \ --exec "${CORE}" -- --logfile="${LOGFILE}" --loglevel="${LOGLEVEL}" \ - --listen="${LISTEN}" --port="${PORT}" \ + ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ --configdir="${CONFIGDIR}" else # running on baselayout-1 start-stop-daemon --start --chuid "${QUASSEL_USER}" --background --make-pidfile \ --pidfile "${PID}" --env HOME="${CONFIGDIR}" \ --exec "${CORE}" -- --logfile="${LOGFILE}" --loglevel="${LOGLEVEL}" \ - --listen="${LISTEN}" --port="${PORT}" \ + ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ --configdir="${CONFIGDIR}" fi eend $?