X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=b1f893353148b5aaf6e3315f80a3a3bae4860bbd;hp=13f32f05cb052e6f99927c46c69dc3ab6ee326e7;hb=b2d376c8f7805be78101865a423f892ddf074588;hpb=811e324061df4f7cf49a7faf61736e23427f3bdf diff --git a/autoconfig.functions b/autoconfig.functions index 13f32f0..b1f8933 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1834,6 +1834,21 @@ config_netconfig(){ } # }}} +# {{{ 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