pf-tools commit: r682 [ccaillet-guest] - /trunk/sbin/mk_grubopt
parmelan-guest at users.alioth.debian.org
parmelan-guest at users.alioth.debian.org
Tue Nov 18 11:50:46 UTC 2008
Author: ccaillet-guest
Date: Tue Nov 18 11:50:45 2008
New Revision: 682
URL: http://svn.debian.org/wsvn/pf-tools/?sc=1&rev=682
Log:
Better like this
Modified:
trunk/sbin/mk_grubopt
Modified: trunk/sbin/mk_grubopt
URL: http://svn.debian.org/wsvn/pf-tools/trunk/sbin/mk_grubopt?rev=682&op=diff
==============================================================================
--- trunk/sbin/mk_grubopt (original)
+++ trunk/sbin/mk_grubopt Tue Nov 18 11:50:45 2008
@@ -71,7 +71,7 @@
foreach ( @tmp_grub ) {
chomp ;
next if ( ! /^\# kopt=.*$/ ) ;
- s/$/ $cmd_line/ if ( defined $cmd_line ) ;
+ s/$/ $cmd_line/ if ( defined $cmd_line && ! /$cmd_line$/ ) ;
}
if ( $dst eq '-' ) {
More information about the pf-tools-commits
mailing list