summaryrefslogtreecommitdiffstats
path: root/server/lib
diff options
context:
space:
mode:
authorJannik Schönartz2020-08-13 16:42:23 +0200
committerJannik Schönartz2020-08-13 16:42:23 +0200
commit4235a2cfd6bb4c0f9f93186190b1f06aecbeb3c5 (patch)
treeff1aa30f4bbdbc9fcd85ac505c8528ea8fb837e2 /server/lib
parent[webapp] Load fonts locally instead of from the google server (diff)
downloadbas-4235a2cfd6bb4c0f9f93186190b1f06aecbeb3c5.tar.gz
bas-4235a2cfd6bb4c0f9f93186190b1f06aecbeb3c5.tar.xz
bas-4235a2cfd6bb4c0f9f93186190b1f06aecbeb3c5.zip
[server/embedded-script] Move the bas wallpaper to a later point in the process
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/confighelper.js6
1 files changed, 6 insertions, 0 deletions
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'