kmscon is one of those scripts that need configs

This commit is contained in:
2014-07-21 20:10:36 +04:00
parent d8089e6325
commit d9610d7832
3 changed files with 17 additions and 1 deletions

13
init.d/X Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env watchman
service_username='fbt'
export HOME="/home/${service_username}"
service_workdir="$HOME"
service_command='/bin/ssh-agent'
service_args='/bin/xinit'
start() {
cd "$service_workdir"
su "$service_username" -c "$BASH -l -c '${service_command} ${service_args}'" &>/tmp/xinit.log &
}