X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=autoconfig.functions;h=23b39ac8783a9eff087a2cf587c2b1280044714c;hb=refs%2Ftags%2Fv0.9.16;hp=a28b1f562cb9ddff57baf5fc979c0bbe9acfdab9;hpb=a9ef28a9082b24866dcbd5769dcc6c51f09b4ec3;p=grml-autoconfig.git diff --git a/autoconfig.functions b/autoconfig.functions index a28b1f5..23b39ac 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 } # }}}