]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
busybox does not know --preserve use -p
authorDaniel Glanzmann <dg@ipfire.org>
Wed, 1 Oct 2008 22:34:02 +0000 (00:34 +0200)
committerDaniel Glanzmann <dg@ipfire.org>
Wed, 1 Oct 2008 22:34:02 +0000 (00:34 +0200)
src/install+setup/install/unattended.c

index 95ee6698e0cf62ecae4df70e863eb10cab4d5ca9..cfdf3314549efdb6b2ca652c81aaa27bde8a2c74 100644 (file)
@@ -150,7 +150,7 @@ int unattended_setup(struct keyvalue *unattendedkv) {
        if (strlen(restore_file) > 0) {
                fprintf(flog, "unattended: Restoring Backup\n");
            snprintf(commandstring, STRING_SIZE,
-                   "cd /harddisk && /bin/tar -xvz --preserve -f /harddisk/var/ipfire/backup/%s", restore_file);
+                   "cd /harddisk && /bin/tar -xvzp -f /harddisk/var/ipfire/backup/%s", restore_file);
            if (mysystem(commandstring)) {
                errorbox("unattended: ERROR restoring backup");
            }