blob: 05a8b9115d8e3dffbcd6dfab24a0676cc574b728 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
if [ `id -u` -ne 0 ]; then
echo "$0: run with sudo $0" >&2
exit 1
fi
SD_USER="${SUDO_USER}"
if [ "x${SD_USER}" = "x" ]; then
echo "$0: run with sudo $0" >&2
exit 2
fi
export SD_USER
openvt -l -s -- su -l ${SD_USER} -s /usr/bin/padsp /usr/bin/mp3blaster
|