Remove tar sterr output on installscreen.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 12 Aug 2010 16:02:58 +0000 (18:02 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 12 Aug 2010 16:02:58 +0000 (18:02 +0200)
Add eject to installer.

config/rootfiles/installer/eject [new symlink]
src/install+setup/install/main.c

diff --git a/config/rootfiles/installer/eject b/config/rootfiles/installer/eject
new file mode 120000 (symlink)
index 0000000..54928be
--- /dev/null
@@ -0,0 +1 @@
+../common/eject
\ No newline at end of file
index ff0b3a2..d023b69 100644 (file)
@@ -441,7 +441,7 @@ int main(int argc, char *argv[])
        }
 
        snprintf(commandstring, STRING_SIZE,
        }
 
        snprintf(commandstring, STRING_SIZE,
-               "/bin/tar -C /harddisk  -xvf /cdrom/" SNAME "-" VERSION ".tlz --lzma");
+               "/bin/tar -C /harddisk  -xvf /cdrom/" SNAME "-" VERSION ".tlz --lzma 2>/dev/null");
        
        if (runcommandwithprogress(60, 4, title, commandstring, INST_FILECOUNT,
                ctr[TR_INSTALLING_FILES]))
        
        if (runcommandwithprogress(60, 4, title, commandstring, INST_FILECOUNT,
                ctr[TR_INSTALLING_FILES]))
@@ -538,7 +538,7 @@ int main(int argc, char *argv[])
        }
        
        mysystem("umount /cdrom");
        }
        
        mysystem("umount /cdrom");
-       snprintf(commandstring, STRING_SIZE, "eject /dev/%s", sourcedrive);
+       snprintf(commandstring, STRING_SIZE, "/usr/bin/eject /dev/%s", sourcedrive);
        mysystem(commandstring);
 
        if (!unattended) {
        mysystem(commandstring);
 
        if (!unattended) {