CONFIG_MYCONFIG='yes' # check if we want the config floppy
CONFIG_MYPATH='yes' # provide setting additional paths via bootoption mypath
CONFIG_NETCONFIG='yes' # download configuration archive provided by bootoption netconfig=...
+CONFIG_NETSCRIPT='yes' # download and run script/executable provided by bootoption netscript=...
CONFIG_NETIPV6='yes' # check for bootparam ipv6
CONFIG_PARTCONF='yes' # do we want partconf to work?
CONFIG_PASSWD='yes' # set password via bootparam passwd
}
# }}}
+# {{{ remote scripts
+config_netscript() {
+ if checkbootparam 'netscript' ; then
+ CONFIG="$(getbootparam 'netscript' 2>>$DEBUG)"
+ SCRIPTFILE='/tmp/netscript.grml'
+
+ if get_remote_file ${CONFIG} ${SCRIPTFILE} ; then
+ chmod +x ${SCRIPTFILE}
+ einfo "Running ${WHITE}${SCRIPTFILE}${NORMAL}:" && ${SCRIPTFILE} ; eend $?
+ fi
+
+ fi
+}
+# }}}
+
# {{{ blindsound
config_blindsound(){
if checkbootparam 'blind' ; then
netconfig=server.tld/path/to/config.tbz => restore configuration using wget to download file config.tbz
+netscript::
+ Use this parameter to download and run a script from specified
+ destination: Usage example:
+
+ netcript=server.tld/path/to/script => download and run script/executable from server
+
extract::
Extract specific directories from configuration archive. Notice: This
checkvalue $CONFIG_NETCONFIG && config_netconfig
+checkvalue $CONFIG_NETSCRIPT && config_netscript
+
checkvalue $CONFIG_NETIPV6 && config_ipv6
checkvalue $CONFIG_DEBNET && config_debnet