linux-kdump-wrapper-20011001
authorNathan Neulinger <nneul@umr.edu>
Mon, 1 Oct 2001 18:17:20 +0000 (18:17 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 1 Oct 2001 18:17:20 +0000 (18:17 +0000)
install a kdump wrapper for linux. (with mod to use $0 instead of kdump)

src/venus/Makefile.in
src/venus/kdump.sh.linux [new file with mode: 0644]

index 8075bfa..37b3db8 100644 (file)
@@ -106,6 +106,7 @@ ${DEST}/etc/kdump: kdump
                ${INSTALLex} -f kdump.sh.solaris7 $@; \
                ${INSTALL} -s -f $? ${DEST}/etc/kdump32;; \
        *linux* ) \
+               ${INSTALLex} -f kdump.sh.linux $@; \
                ${INSTALL} -s kdump-${LINUX_VERSION} ${DEST}/etc/kdump-${LINUX_VERSION} ;; \
        hp_ux11* ) \
                ${INSTALLex} -f kdump.sh.hp_ux11 $@; \
diff --git a/src/venus/kdump.sh.linux b/src/venus/kdump.sh.linux
new file mode 100644 (file)
index 0000000..af40a22
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Copyright 2000, International Business Machines Corporation and others.
+# All Rights Reserved.
+# 
+# This software has been released under the terms of the IBM Public
+# License.  For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
+
+## Wrapper script for kdump on Linux.
+
+REL=`uname -r`
+DASH='-'
+exec $0${DASH}${REL} ${1+"$@"}