X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=07e09800936dc4d4c1c55a531d45f4cf65dc8b74;hp=a28b1f562cb9ddff57baf5fc979c0bbe9acfdab9;hb=863744b19ebd06192addb6287c47cec4f5f94b2d;hpb=0deb64a5e66806bc9b5f9aefa474d40801a9d123 diff --git a/autoconfig.functions b/autoconfig.functions index a28b1f5..07e0980 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1540,6 +1540,15 @@ if checkbootparam 'vnc' ; then /bin/chown -R "$USER": "$VNCDIR" fi fi + if checkbootparam 'vnc_connect' ; then + VNC_CONNECT='' + VNC_CONNECT="$(getbootparam 'vnc_connect' 2>>$DEBUG)" + einfo "Bootoption vnc_connect found, will start vnc with connect to $VNC_CONNECT." + #store the options in a file + VNCDIR="/home/${USER}/.vnc" + [ -d "$VNCDIR" ] || mkdir "$VNCDIR" + echo " --connect $VNC_CONNECT " >> $VNCDIR/options + fi fi } # }}}