projects
/
grml-autoconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0deb64a
)
Add support for vnc_connect feature (#877)
author
Alexander Wirt
<formorer@debian.org>
Sun, 7 Nov 2010 19:10:04 +0000
(20:10 +0100)
committer
Alexander Wirt
<formorer@debian.org>
Sun, 7 Nov 2010 19:10:04 +0000
(20:10 +0100)
autoconfig.functions
patch
|
blob
|
history
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
a28b1f5
..
07e0980
100755
(executable)
--- 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
}
# }}}