summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/x11vnc/files/x11vnc.init.d-r1')
-rw-r--r--x11-misc/x11vnc/files/x11vnc.init.d-r18
1 files changed, 4 insertions, 4 deletions
diff --git a/x11-misc/x11vnc/files/x11vnc.init.d-r1 b/x11-misc/x11vnc/files/x11vnc.init.d-r1
index 04c36ea361db..8907b3858a31 100644
--- a/x11-misc/x11vnc/files/x11vnc.init.d-r1
+++ b/x11-misc/x11vnc/files/x11vnc.init.d-r1
@@ -16,8 +16,8 @@ checkconfig() {
X11VNC_RFBPORT=${X11VNC_RFBPORT:-5900}
X11VNC_DISPLAY=${X11VNC_DISPLAY:-:0}
X11VNC_LOG=${X11VNC_LOG:-/var/log/x11vnc}
-
- X11VNC_AUTH="/var/run/x11vnc-${X11VNC_DISPLAY}"
+
+ X11VNC_AUTH="/var/run/x11vnc-${X11VNC_DISPLAY}"
if [ -n "${X11VNC_AUTOPORT}" ]; then
X11VNC_PORT=""
@@ -30,7 +30,7 @@ checkconfig() {
checkpath -q -f -m 0600 -o root:root "${X11VNC_RFBAUTH}"
# Attempt to find X-Auth file
- if ! type xauth > /dev/null 2>&1 ||
+ if ! command -v xauth > /dev/null 2>&1 ||
! xauth -f /root/.Xauthority extract - "${X11VNC_DISPLAY}" > "${X11VNC_AUTH}" 2>/dev/null ||
[ ! -s "${X11VNC_AUTH}" ]; then
# Let x11vnc guess at auth
@@ -43,7 +43,7 @@ checkconfig() {
if [ ! -f "${X11VNC_AUTH}" ]; then
eerror "Specified X-Authority file '${X11VNC_AUTH}' not found!"
return 1
- fi
+ fi
}
start() {