aboutsummaryrefslogtreecommitdiff
path: root/configs/party-mode/spawn_mpsyt
blob: 9e0f25e8a911e69845f471149dc377c32b86b568 (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/local/bin/mpsyt