Hello all,
Another script with translation and small bugs clean
Add it :
Code: Select all
INC_0="/etc/default/$NAME"
INC_1="/lib/lsb/init-functions"
[ -x "$DAEMON" ] || exit 0
[ ! -f "${INC_0}" ] && echo "$(gettext "This script") ${NAME} $(gettext "needs to include") ${INC_0} $(gettext "in order to work.")" && exit 1
[ ! -f "${INC_1}" ] && echo "$(gettext "This script") ${NAME} $(gettext "needs to include") ${INC_1} $(gettext "in order to work.")" && exit 1
. ${INC_0}
. ${INC_1}
removed :
Code: Select all
if [ -f /etc/default/$NAME ]; then
. /etc/default/$NAME
fi
. /lib/lsb/init-functions
Puppy: LunarPup
Path: /etc/init.d