[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

system-config-network patch



Hi, I looked at bugzilla to see where to register a bug for fedora core 1.90, but I'm not savy enough to understand.


I've got a:
Linux shaka.ec-group.com 2.6.2 #2 Wed Feb 4 10:56:07 CST 2004 i686 i686 i386 GNU/Linux
running:
Fedora Core release 1.90 (FC2 Test 1)


I was getting an error adding at the grub boot cmd line "netprofile=<profile>". Seems that /etc/rc.sysinit still has redhat-config-network-cmd defined in it. It should be system-config-network-cmd. Diff is:

# diff -wruN rc.sysinit.orig rc.sysinit
--- rc.sysinit.orig     2004-02-09 13:14:15.891041351 -0600
+++ rc.sysinit  2004-02-09 11:51:58.822004094 -0600
@@ -780,11 +780,11 @@
 fi

# Boot time profiles. Yes, this should be somewhere else.
-if [ -x /usr/sbin/redhat-config-network-cmd ]; then
+if [ -x /usr/sbin/system-config-network-cmd ]; then
if strstr "$cmdline" netprofile= ; then
for arg in $cmdline ; do
if [ "${arg##netprofile=}" != "${arg}" ]; then
- /usr/sbin/redhat-config-network-cmd --profile ${arg##netprofile=}
+ /usr/sbin/system-config-network-cmd --profile ${arg##netprofile=}
fi
done
fi
[


Also I (I know, good practice, bla,bla,bla) compiled and am running kernel 2.6.2 (no release rev) so the system-config-network scripts fail. Below is a patch to check for meatheads like me"

# diff -wruN NC_functions.py.orig NC_functions.py
--- NC_functions.py.orig        2004-02-09 12:43:41.683794176 -0600
+++ NC_functions.py     2004-02-09 13:02:38.414687101 -0600
@@ -50,6 +50,9 @@
     global _kernel_version
     if not _kernel_version:
         (sysname, nodename, release, version, machine) = os.uname()
+        if string.find(release,"-") < 0 :
+               _kernel_version = string.split(release, ".")
+       else :
         (ver, rel) = string.split(release, "-")
         _kernel_version = string.split(ver, ".")
     return _kernel_version

Where should I be posting this info?

Thanks.
--
Brian Millett
Enterprise Consulting Group     "Shifts in paradigms
(314) 205-9030                     often cause nose bleeds."
bpmATec-groupDOTcom             Greg Glenn




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]