Hello community, here is the log from the commit of package linuxrc checked in at Fri Jul 25 17:08:50 CEST 2008. -------- --- linuxrc/linuxrc.changes 2008-07-24 15:52:15.000000000 +0200 +++ /mounts/work_src_done/STABLE/linuxrc/linuxrc.changes 2008-07-25 16:52:55.000000000 +0200 @@ -1,0 +2,6 @@ +Fri Jul 25 16:52:52 CEST 2008 - snwint@suse.de + +- support .init/.done scripts in extensions +- show motd when starting a shell + +------------------------------------------------------------------- Old: ---- linuxrc-3.2.2.tar.bz2 New: ---- linuxrc-3.2.3.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ linuxrc.spec ++++++ --- /var/tmp/diff_new_pack.n31269/_old 2008-07-25 17:07:39.000000000 +0200 +++ /var/tmp/diff_new_pack.n31269/_new 2008-07-25 17:07:39.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package linuxrc (Version 3.2.2) +# spec file for package linuxrc (Version 3.2.3) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -17,9 +17,9 @@ Group: System/Boot AutoReqProv: on Summary: SUSE Installation Program -Version: 3.2.2 +Version: 3.2.3 Release: 1 -Source: linuxrc-3.2.2.tar.bz2 +Source: linuxrc-3.2.3.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -54,6 +54,9 @@ %doc linuxrc.html %changelog +* Fri Jul 25 2008 snwint@suse.de +- support .init/.done scripts in extensions +- show motd when starting a shell * Thu Jul 24 2008 snwint@suse.de - 'extend' can now add and remove inst-sys parts - added 'sax2' option: use sax2 for inst-sys X11 config ++++++ linuxrc-3.2.2.tar.bz2 -> linuxrc-3.2.3.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.2.2/auto2.c new/linuxrc-3.2.3/auto2.c --- old/linuxrc-3.2.2/auto2.c 2008-07-23 16:06:17.000000000 +0200 +++ new/linuxrc-3.2.3/auto2.c 2008-07-25 12:27:10.000000000 +0200 @@ -1050,7 +1050,7 @@ { int err = 0; char *argv[3] = { }; - char *s; + char *s, *cmd = NULL; slist_t *sl; fprintf(stderr, "instsys add extension: %s\n", extension); @@ -1107,6 +1107,11 @@ argv[1] = sl->value; argv[2] = "/"; util_lndir_main(3, argv); + if(util_check_exist2(sl->value, ".init") == 'r') { + strprintf(&cmd, "%s/.init %s", sl->value, sl->value); + system(cmd); + str_copy(&cmd, NULL); + } } } } @@ -1118,7 +1123,7 @@ int auto2_remove_extension(char *extension) { int err = 0; - char *s, *prefix, *path = NULL, *lbuf = NULL; + char *s, *prefix, *path = NULL, *lbuf = NULL, *cmd = NULL; size_t lbuf_size = 0; FILE *f, *w; slist_t *sl0 = NULL, *sl; @@ -1141,6 +1146,11 @@ if(slist_getentry(config.url.instsys_list, sl0->key)) { prefix = "# "; for(sl = sl0->next; sl; sl = sl->next) { + if(util_check_exist2(sl->key, ".done") == 'r') { + strprintf(&cmd, "%s/.done %s", sl->key, sl->key); + system(cmd); + str_copy(&cmd, NULL); + } util_umount(sl->key); } } diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.2.2/Changelog new/linuxrc-3.2.3/Changelog --- old/linuxrc-3.2.2/Changelog 2008-07-24 15:51:48.000000000 +0200 +++ new/linuxrc-3.2.3/Changelog 2008-07-25 14:48:15.000000000 +0200 @@ -1,3 +1,7 @@ +25/7/2008: v3.2.3 + - support .init/.done scripts in extensions + - show motd when starting a shell + 23/7/2008: v3.2.2 - 'extend' can now add and remove inst-sys parts - added 'sax2' option: use sax2 for inst-sys X11 config diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.2.2/util.c new/linuxrc-3.2.3/util.c --- old/linuxrc-3.2.2/util.c 2008-07-24 10:15:39.000000000 +0200 +++ new/linuxrc-3.2.3/util.c 2008-07-25 14:42:13.000000000 +0200 @@ -1876,7 +1876,8 @@ */ void util_start_shell(char *tty, char *shell, int flags) { - int fd; + int fd, i; + FILE *f; char *s, *args[] = { NULL, NULL, NULL }; char *env[] = { NULL, /* TERM */ @@ -1909,6 +1910,11 @@ fflush(stdout); } + if((f = fopen("/etc/motd", "r"))) { + while((i = fgetc(f)) != EOF) putchar(i); + fclose(f); + } + execve(shell, args, (flags & 1) ? env : environ); fprintf(stderr, "Couldn't start shell (errno = %d)\n", errno); exit(-1); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/linuxrc-3.2.2/VERSION new/linuxrc-3.2.3/VERSION --- old/linuxrc-3.2.2/VERSION 2008-07-23 12:09:32.000000000 +0200 +++ new/linuxrc-3.2.3/VERSION 2008-07-25 12:27:59.000000000 +0200 @@ -1 +1 @@ -3.2.2 +3.2.3 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org