diff options
author | Bill Nottingham <notting@redhat.com> | 2001-04-22 05:48:35 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-04-22 05:48:35 +0000 |
commit | 32f86661e269d5fbcfe902263c6e11245670e5c8 (patch) | |
tree | 36dc2f7ebac72d9882d525f0dc542a047ad0ac19 /src/mkkerneldoth | |
parent | ed6983ceb642f9259c03d0d705d7971a0a51174c (diff) | |
download | initscripts-32f86661e269d5fbcfe902263c6e11245670e5c8.tar initscripts-32f86661e269d5fbcfe902263c6e11245670e5c8.tar.gz initscripts-32f86661e269d5fbcfe902263c6e11245670e5c8.tar.bz2 initscripts-32f86661e269d5fbcfe902263c6e11245670e5c8.tar.xz initscripts-32f86661e269d5fbcfe902263c6e11245670e5c8.zip |
fix it for some cases (#36480)
Diffstat (limited to 'src/mkkerneldoth')
-rw-r--r-- | src/mkkerneldoth | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mkkerneldoth b/src/mkkerneldoth index ff205e18..bba0ab78 100644 --- a/src/mkkerneldoth +++ b/src/mkkerneldoth @@ -3,7 +3,7 @@ # Generate a header that defines the boot kernel. # -KERNEL_TYPE=`uname -r | sed 's_^[^se]*\(\|smp\|enterprise\)$_-\1_;s_^-$__'` +KERNEL_TYPE=`uname -r | sed 's_^.*\(smp\|enterprise\)$_-\1_;t;s_.*__;'` KERNEL_RELEASE=`uname -r | sed 's|smp\|enterprise||g'` rpm -q kernel$KERNEL_TYPE-$KERNEL_RELEASE >/dev/null 2>&1 && KERNEL_ARCH=`rpm -q --qf '%{ARCH}' kernel$KERNEL_TYPE-$KERNEL_RELEASE 2>/dev/null` || KERNEL_ARCH=`uname -m` |