/usr/sbin/sdm is in sdm-terminal 0.4.1-4.
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 40 41 42 43 44 45 46 47 48 49 50 51 52 | #!/bin/dash
#/usr/sbin/sdm
# Copyright 2003-2007 Vagrant Cascadian <vagrant@freegeek.org>.
# Licensed under the terms of the GNU General Public License,
# version 2 or any later version.
# this can be run from /etc/inittab, like so:
# sdm:2345:respawn:/usr/sbin/sdm
# set default sdmlogin program
sdmlogin=/usr/sbin/sdm-login
if [ -r /etc/sdm/sdm.config ]; then
. /etc/sdm/sdm.config
fi
hostname=$(hostname)
if [ -r /etc/sdm/sdm.config.$hostname ]; then
. /etc/sdm/sdm.config.$hostname
fi
if [ -z "$xserver" ]; then
xserver="/usr/bin/X"
fi
if [ ! -x "$sdmlogin" ]; then
echo "ERROR: sdm login command not found: $sdmlogin"
exit 1
fi
for a in $@; do
case $1 in
--xserver) xserver="$2"
shift ;;
*) args="$args $1" ;;
esac
if [ -n "$1" ]; then
shift
fi
done
if [ -z "$args" ]; then
args="-br"
fi
if [ ! -x "$xserver" ]; then
echo "ERROR: X server not found: $xserver"
exit 1
fi
exec xinit $sdmlogin -- $xserver $args
|