From d64b0b37d63d36b1c01613f31466856ed14f80c7 Mon Sep 17 00:00:00 2001 From: Sebastian Schmelzer Date: Thu, 18 Jun 2009 18:06:52 +0000 Subject: Makefile: remove tabs new preboot test version git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2974 95ad53e4-c205-0410-b2fa-d234c58c8868 --- boot-env/preboot/preboot.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'boot-env/preboot/preboot.sh') 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- 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 -- cgit v1.2.3-55-g7522