/usr/share/amule/amuled_home_wrapper.sh is in amule-daemon 1:2.3.2-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | #! /bin/sh
# This script gets called by /etc/init.d/amule-daemon, and its purpose
# is to honour the AMULED_HOME variable in /etc/default/amule-daemon.
# This can't be done in the init script itself because HOME gets reset
# by start-stop-daemon on --chuid, or so it seems.
#
# It also sets up a sensible locale, needed by amuled to properly handle
# files with non-ASCII characters.
. /etc/default/amule-daemon
if [ -n "$AMULED_HOME" ]; then
HOME="$AMULED_HOME"
export HOME
fi
# Test whether we have some LANG variable set; if we do, do not read
# /etc/default/locale.
: ${L:=$LC_ALL}
: ${L:=$LC_CTYPE}
: ${L:=$LANG}
if [ -z "$L" ] && [ -r /etc/default/locale ]; then
. /etc/default/locale
for v in "$LC_ALL" "$LC_CTYPE" "$LANG"; do
if [ -n "$v" ]; then
LANG="$v"
export LANG
break
fi
done
fi
exec /usr/bin/amuled -f
|