Add support for vnc_connect feature (#877)
[grml-etc.git] / etc / skel / .xinitrc.d / grml_vnc
index eff5a40..1962179 100755 (executable)
@@ -12,8 +12,9 @@ fi
 
 # if the vnc bootoption sets up the password let's start the vnc server
 if [ -e $HOME/.vnc/passwd ]; then
+   test -f $HOME/.vnc/options && OPTIONS=$(cat $HOME/.vnc/options)
    /usr/bin/x11vnc -bg -forever -noxdamage -o $HOME/.vnc/x11vnc.log -rfbauth \
-                   $HOME/.vnc/passwd -auth $HOME/.Xauthority -display $DISPLAY
+                   $HOME/.vnc/passwd -auth $HOME/.Xauthority -display $DISPLAY $OPTIONS
 fi
 
 ## END OF FILE #################################################################