Installer: set gpl_accepted marker after installation.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 4 Dec 2010 17:17:58 +0000 (18:17 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 4 Dec 2010 17:17:58 +0000 (18:17 +0100)
src/install+setup/install/main.c

index 5b408a7..d18f16b 100644 (file)
@@ -535,6 +535,9 @@ int main(int argc, char *argv[])
                replace("/harddisk/etc/inittab", "#7:2345:respawn:", "7:2345:respawn:");
        }
 
+       /* Set marker that the user has already accepted the gpl */
+       mysystem("/usr/bin/touch /harddisk/var/ipfire/main/gpl_accepted");
+
        /* Copy restore file from cdrom */
        if (unattended && (strlen(restore_file) > 0)) {
                fprintf(flog, "unattended: Copy restore file\n");