diff options
author | Sebastian Schmelzer | 2009-06-18 20:06:52 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2009-06-18 20:06:52 +0200 |
commit | d64b0b37d63d36b1c01613f31466856ed14f80c7 (patch) | |
tree | a5faba3c9242f38cc57869796e87f8f024181a5e /boot-env/preboot/preboot.sh | |
parent | Updated the syslinux components to HPAs new version (3.82) ... (diff) | |
download | core-d64b0b37d63d36b1c01613f31466856ed14f80c7.tar.gz core-d64b0b37d63d36b1c01613f31466856ed14f80c7.tar.xz core-d64b0b37d63d36b1c01613f31466856ed14f80c7.zip |
Makefile: remove tabs
new preboot test version
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2974 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'boot-env/preboot/preboot.sh')
-rwxr-xr-x | boot-env/preboot/preboot.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/boot-env/preboot/preboot.sh b/boot-env/preboot/preboot.sh index 169111ed..703af974 100755 --- a/boot-env/preboot/preboot.sh +++ b/boot-env/preboot/preboot.sh @@ -14,13 +14,24 @@ # get configuration . /etc/initramfs-setup +. ./preboot-scripts/dialog.functions # bring the mac address into the standard format 01-<MAC> client=$(echo 01-$macaddr|sed "s/:/-/g") # check if already a configuration is available to decide if user interaction # is required (path is to be fixed) -wget -q -O /tmp/cfg-error $boot_uri/genconfig/${client} +wget -q -O /tmp/have-user-config "$boot_uri/users.pl?user=${client}" +have_user_config=$(cat /tmp/have-user-config); + +if [ "x1" == "x$have_user_config" ]; then + wget -q -O /tmp/oldconfig "$boot_uri/users.pl?user=${client}&action=read" + . /tmp/oldconfig + menu_oldconfig $oldconfig +else + menu_firststart +fi +rm result; # Switch here for several boot TYPE=fastboot/directkiosk/cfgkiosk/slxconfig # fastboot - no interaction use system from client config |