diff options
author | Oliver Tappe | 2009-01-29 00:37:57 +0100 |
---|---|---|
committer | Oliver Tappe | 2009-01-29 00:37:57 +0100 |
commit | a231889a3f94455f13773f802d99cdd4086187ba (patch) | |
tree | d0298aa58b380455186bbe0cfd02f8b49ea698f0 /boot-env/preboot/preboot.sh | |
parent | * added cgi-bin script that accepts user-setting via http-server (diff) | |
download | core-a231889a3f94455f13773f802d99cdd4086187ba.tar.gz core-a231889a3f94455f13773f802d99cdd4086187ba.tar.xz core-a231889a3f94455f13773f802d99cdd4086187ba.zip |
* escape the URL used to edit the user settings
* correct the file-param of the kernel cmdline
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2556 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'boot-env/preboot/preboot.sh')
-rwxr-xr-x | boot-env/preboot/preboot.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/boot-env/preboot/preboot.sh b/boot-env/preboot/preboot.sh index 117bd046..6c0f5f04 100755 --- a/boot-env/preboot/preboot.sh +++ b/boot-env/preboot/preboot.sh @@ -24,11 +24,13 @@ sysname=$(cat result) # if wget +ash + # 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/cgi-bin/user_settings.pl?system=${sysname}\&preboot_id=${preboot_id}\&client=${client} + "$boot_uri/cgi-bin/user_settings.pl?system=${sysname}&preboot_id=${preboot_id}&client=${client}" chvt 1 # fetch kernel and initramfs of selected system @@ -41,5 +43,5 @@ wget -O /tmp/initramfs $boot_uri/system/$initramfs # start the new kernel with initialramfs and composed cmdline echo "Booting OpenSLX client $label ..." kexec -l /tmp/kernel --initrd=/tmp/initramfs \ - --append="$append file=$boot_uri/preboot/${preboot_id}/${sysname}/${client}.tgz $quiet ip=$ip:$siaddr:$router:$subnet:$dnssrv" + --append="$append file=$boot_uri/preboot/${preboot_id}/client-config/${sysname}/${client}.tgz $quiet ip=$ip:$siaddr:$router:$subnet:$dnssrv debug=3" kexec -e |