summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-12-01 18:08:23 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-12-01 18:08:23 (GMT)
commit68b345130ca4f46f3482bc023d2c325dbbf254b7 (patch)
tree9c1b74e9e64edd59692334ab82810924cd98a0a7 /abs/core/runit-scripts/runitscripts
parent400501639cf4cb3ea8ed01f3c19dadf5c5bed00c (diff)
downloadlinhes_pkgbuild-68b345130ca4f46f3482bc023d2c325dbbf254b7.zip
linhes_pkgbuild-68b345130ca4f46f3482bc023d2c325dbbf254b7.tar.gz
linhes_pkgbuild-68b345130ca4f46f3482bc023d2c325dbbf254b7.tar.bz2
runit-scripts: on shutdown force remove of x:1
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/vnc/finish5
1 files changed, 5 insertions, 0 deletions
diff --git a/abs/core/runit-scripts/runitscripts/services/vnc/finish b/abs/core/runit-scripts/runitscripts/services/vnc/finish
index 243488c..605a0c4 100755
--- a/abs/core/runit-scripts/runitscripts/services/vnc/finish
+++ b/abs/core/runit-scripts/runitscripts/services/vnc/finish
@@ -7,3 +7,8 @@ export TERM=linux
stat_runit "Stopping vnc service"
rm -f /etc/avahi/services/vnc.service 2>/dev/null
su vncsvc -c "vncserver -kill :1"
+XFILE="/tmp/.X11-unix/X1"
+if [ -e $XFILE ]
+then
+ rm -f $XFILE
+fi