blob: 2174f5f3b4e2e0f984370cb7456597608fabcd4b (
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 /home/${SD_USER}/mps-youtube/bin/mpsyt
|