/sbin/init-ltsp is in ltsp-client-core 5.3.7-0ubuntu2.
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 36 37 38 39 | #!/bin/sh
. /usr/share/ltsp/ltsp-client-functions
test -f "/etc/ltsp/init-ltsp.conf" && . /etc/ltsp/init-ltsp.conf
scriptsdir="/usr/share/ltsp/init-ltsp.d/"
# workaround Debian bug in initramfs-tools:
# http://bugs.debian.org/660297
mountpoint -q /sys || mount -t sysfs -o nodev,noexec,nosuid sysfs /sys
mountpoint -q /proc || mount -t proc -o nodev,noexec,nosuid proc /proc
# Provide a break=<script-name> kernel parameter which will offer a shell just
# before sourcing that script.
for x in $(cat /proc/cmdline); do
case "$x" in
break=[0-9][0-9]-*)
breakscript="$scriptsdir/${x#break=}"
break;
;;
esac
done
for script in $(run_parts_list "$scriptsdir") ; do
if [ "$script" = "$breakscript" ]; then
echo "Spawning shell before $script" >&2
bash -l
echo "Continuing ltsp-init execution" >&2
fi
. "$script"
done
# init=/sbin/init-ltsp can be used to launch this script, which should then
# chain to /sbin/init.
# To run it from the initramfs instead, set the EXEC_INIT environment variable
# to "false".
if [ "$EXEC_INIT" != "false" ]; then
exec /sbin/init
fi
|