diff options
author | Dirk von Suchodoletz | 2009-01-28 23:44:33 +0100 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-01-28 23:44:33 +0100 |
commit | 7fb9d5ab80ea3cd0a9a548b0ff800d97ae874cae (patch) | |
tree | 5b81f1bbd01c67b79eeee9234a379476e23a3089 /boot-env/preboot/preboot.sh | |
parent | * a little cleanup (no need for specific PrebootCD.pm in MakeInitRamFS) (diff) | |
download | core-7fb9d5ab80ea3cd0a9a548b0ff800d97ae874cae.tar.gz core-7fb9d5ab80ea3cd0a9a548b0ff800d97ae874cae.tar.xz core-7fb9d5ab80ea3cd0a9a548b0ff800d97ae874cae.zip |
Webserver interaction for client configuration.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2553 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'boot-env/preboot/preboot.sh')
-rwxr-xr-x | boot-env/preboot/preboot.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/boot-env/preboot/preboot.sh b/boot-env/preboot/preboot.sh index 14f154c4..d0979626 100755 --- a/boot-env/preboot/preboot.sh +++ b/boot-env/preboot/preboot.sh @@ -22,8 +22,13 @@ dialog --file bootmenu.dialog 2>result sysname=$(cat result) . ./$sysname +# if wget + +# bring the mac address into the standard format 01-<MAC> +client=$(echo 01-$macaddr|sed "s/:/-/g") chvt 4 -w3m -o confirm_qq=no $boot_uri/user_settings.pl?system=$sysname +w3m -o confirm_qq=no \ + $boot_uri/cgi-bin/user_settings.pl?system=${sysname}&preboot_id=${preboot_id}&client=${client} chvt 1 # fetch kernel and initramfs of selected system @@ -36,5 +41,5 @@ wget -O /tmp/initramfs $boot_uri/$initramfs # start the new kernel with initialramfs and composed cmdline echo "Booting OpenSLX client $label ..." kexec -l /tmp/kernel --initrd=/tmp/initramfs \ - --append="ip=$ip:$siaddr:$router:$subnet:$dnssrv $append file=$boot_uri $quiet" + --append="$append file=$boot_uri/preboot/${preboot_id}/${sysname}/${client}.tgz $quiet ip=$ip:$siaddr:$router:$subnet:$dnssrv" kexec -e |