summaryrefslogtreecommitdiffhomepage
path: root/examples/var_service/gpm/run
blob: a13fdcdf0eefa5ea34fdde657b58c2ce6b23f2da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

exec >/dev/null
exec 2>&1
exec </dev/null

user=root
options="-D -2 -m /dev/psaux -t ps2"
#options="-D -2 -m /dev/ttyS0 -t bare"

exec \
env - PATH="$PATH" \
softlimit \
setuidgid "$user" \
gpm $options