diff options
author | Sebastian Schmelzer | 2008-10-14 23:07:15 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2008-10-14 23:07:15 +0200 |
commit | 1d927e87ad5183c56e3b24e403c1a1c6e53795d7 (patch) | |
tree | 982fdffcf64e4eab02a11383844d8df645a36fe3 /os-plugins/plugins/x11vnc/files | |
parent | removed bug where kdmrc.sysconfig is not replaced (diff) | |
download | core-1d927e87ad5183c56e3b24e403c1a1c6e53795d7.tar.gz core-1d927e87ad5183c56e3b24e403c1a1c6e53795d7.tar.xz core-1d927e87ad5183c56e3b24e403c1a1c6e53795d7.zip |
* added distro specific runlevel scripts
* fixed bug #281
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2300 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/x11vnc/files')
-rwxr-xr-x | os-plugins/plugins/x11vnc/files/x11vnc-init (renamed from os-plugins/plugins/x11vnc/files/x11vnc) | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/os-plugins/plugins/x11vnc/files/x11vnc b/os-plugins/plugins/x11vnc/files/x11vnc-init index 81be80de..a074d8dc 100755 --- a/os-plugins/plugins/x11vnc/files/x11vnc +++ b/os-plugins/plugins/x11vnc/files/x11vnc-init @@ -12,7 +12,7 @@ fi find_xauth () { FOUND=0 RETRIES=4 - [ -z "$1" ] && RETRIES="$1" + [ -z "$1" ] || RETRIES="$1" [ -e "/var/lib/kdm/" ] && XAUTHFILE_KDM=`find /var/lib/kdm/ -iname "A\:0-*"` @@ -30,11 +30,11 @@ find_xauth () { let "RETRIES-=1" find_xauth "$RETRIES" else - echo " .. FAILED (can't find way to authenticate myself against X)" + echo "start FAILED (can't find way to authenticate myself against X)" >>/var/log/x11vnc.debug exit -1 fi else - echo "found ($XAUTHORITY)" + echo "found authfile ($XAUTHORITY)" >>/var/log/x11vnc.debug fi } @@ -42,11 +42,10 @@ START_COMMAND="x11vnc" case "$1" in start) - echo -n " * Loading x11vnc " if [ ! -f /etc/x11vnc/passwd ]; then - echo " .. FAILED (/etc/x11vnc/passwd not found)" - echo " Create it manualy and retry starting x11vnc" + echo " start FAILED (/etc/x11vnc/passwd not found)" >>/var/log/x11vnc.debug + echo " Create it manualy and retry starting x11vnc" >>/var/log/x11vnc.debug exit -1; fi @@ -60,17 +59,16 @@ case "$1" in OUTPUT=`$START_COMMAND` echo "$START_COMMAND" >>/var/log/x11vnc.debug echo "$OUTPUT" >>/var/log/x11vnc.debug - echo " .. OK" ;; stop) pid=`pidof x11vnc` if [ -z "$pid" ] then - echo " * x11vnc not running.." + echo "x11vnc not running" >>/var/log/x11vnc.debug exit -1; else kill -9 $pid - echo " * x11vnc stopped" + echo "x11vnc stopped" >>/var/log/x11vnc.debug fi ;; |