From: Daniel Glanzmann Date: Mon, 29 Sep 2008 19:11:25 +0000 (+0200) Subject: added default values for restoring X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=66335974756411cf835080f25ad43ba8d3238a0f added default values for restoring --- diff --git a/config/syslinux/unattended.conf b/config/syslinux/unattended.conf index 5adf27900..39f6bca25 100644 --- a/config/syslinux/unattended.conf +++ b/config/syslinux/unattended.conf @@ -10,3 +10,4 @@ GREEN_NETADDRESS=192.168.180.0 GREEN_BROADCAST=192.168.180.255 ROOT_PASSWORD=ipfire ADMIN_PASSWORD=ipfire +RESTORE_FILE= diff --git a/src/install+setup/install/main.c b/src/install+setup/install/main.c index 52b040298..418000477 100644 --- a/src/install+setup/install/main.c +++ b/src/install+setup/install/main.c @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) 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); diff --git a/src/install+setup/install/unattended.c b/src/install+setup/install/unattended.c index 5bec24f0e..754946aa2 100644 --- a/src/install+setup/install/unattended.c +++ b/src/install+setup/install/unattended.c @@ -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 restore_file[STRING_SIZE]; + char restore_file[STRING_SIZE] = ""; findkey(unattendedkv, "DOMAINNAME", domainname); findkey(unattendedkv, "HOSTNAME", hostname);