]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
added default values for restoring
authorDaniel Glanzmann <dg@ipfire.org>
Mon, 29 Sep 2008 19:11:25 +0000 (21:11 +0200)
committerDaniel Glanzmann <dg@ipfire.org>
Mon, 29 Sep 2008 19:11:25 +0000 (21:11 +0200)
config/syslinux/unattended.conf
src/install+setup/install/main.c
src/install+setup/install/unattended.c

index 5adf279001c2c7274bbf8235a77172086a7284ee..39f6bca25540c2d8ae5927f8d0bd4b45ffa0433e 100644 (file)
@@ -10,3 +10,4 @@ GREEN_NETADDRESS=192.168.180.0
 GREEN_BROADCAST=192.168.180.255
 ROOT_PASSWORD=ipfire
 ADMIN_PASSWORD=ipfire
 GREEN_BROADCAST=192.168.180.255
 ROOT_PASSWORD=ipfire
 ADMIN_PASSWORD=ipfire
+RESTORE_FILE=
index 52b0402984050b6414acb459e3f4b550c95ec6b1..418000477eb755bf145912a205e7cb221449e6b7 100644 (file)
@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
        int unattended = 0;
        struct keyvalue *unattendedkv = initkeyvalues();
        int hardyn = 0;
        int unattended = 0;
        struct keyvalue *unattendedkv = initkeyvalues();
        int hardyn = 0;
-       char restore_file[STRING_SIZE];
+       char restore_file[STRING_SIZE] = "";
 
        setlocale (LC_ALL, "");
        sethostname( SNAME , 10);
 
        setlocale (LC_ALL, "");
        sethostname( SNAME , 10);
index 5bec24f0e2d5a1b3594c4e66fcfde1c284575372..754946aa22fee778205620b7e80de94fe6b01ccb 100644 (file)
@@ -41,7 +41,7 @@ int unattended_setup(struct keyvalue *unattendedkv) {
     char green_broadcast[STRING_SIZE];
     char root_password[STRING_SIZE];
     char admin_password[STRING_SIZE];
     char green_broadcast[STRING_SIZE];
     char root_password[STRING_SIZE];
     char admin_password[STRING_SIZE];
-    char restore_file[STRING_SIZE];
+    char restore_file[STRING_SIZE] = "";
 
     findkey(unattendedkv, "DOMAINNAME", domainname);
     findkey(unattendedkv, "HOSTNAME", hostname);
 
     findkey(unattendedkv, "DOMAINNAME", domainname);
     findkey(unattendedkv, "HOSTNAME", hostname);