From 4235a2cfd6bb4c0f9f93186190b1f06aecbeb3c5 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Thu, 13 Aug 2020 14:42:23 +0000 Subject: [server/embedded-script] Move the bas wallpaper to a later point in the process --- server/lib/confighelper.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/lib') diff --git a/server/lib/confighelper.js b/server/lib/confighelper.js index ed7cd14..3cbbe58 100644 --- a/server/lib/confighelper.js +++ b/server/lib/confighelper.js @@ -181,6 +181,8 @@ async function prepareConfig (configInfo, noScript) { var script = '' var menuscript = '' script += '#!ipxe\r\n\r\n' + script += 'set img https://bas.intra.uni-freiburg.de/files/ipxe_wallpaper.png || goto start\r\n' + script += `console --picture \${img} --x 800 --y 600 ||\r\n\r\n` script += ':start\r\n' script += 'menu ' + config.name + '\r\n' config.entries.forEach(entry => { @@ -246,6 +248,8 @@ async function _createDynamicMenu (configInfos, noScript) { var menuscript = '' var defaultentry = '' script += '#!ipxe\r\n\r\n' + script += 'set img https://bas.intra.uni-freiburg.de/files/ipxe_wallpaper.png || goto start\r\n' + script += `console --picture \${img} --x 800 --y 600 ||\r\n\r\n` script += ':start\r\n' script += 'menu ' + 'Choose one configuration to boot' + '\r\n' configs.forEach(config => { @@ -272,6 +276,8 @@ async function _createDynamicMenu (configInfos, noScript) { // Creates a default overview config, when there is no default config in the frontend. function getDefaultConfig (client) { let script = '#!ipxe\r\n\r\n' + script += 'set img https://bas.intra.uni-freiburg.de/files/ipxe_wallpaper.png || goto start\r\n' + script += `console --picture \${img} --x 800 --y 600 ||\r\n\r\n` script += ':start\r\n' script += 'menu ' + 'Client is successfully registered' + '\r\n' script += 'item --gap BAS-ID: ' + client.id + '\r\n' -- cgit v1.2.3-55-g7522