I would like to rename package devallocator. "_" are frowned upon in
Fedora.
Dan
--- dev_allocator/conf/dev_allocation.rhat 2006-02-02 20:21:55.000000000 -0500
+++ dev_allocator/conf/dev_allocation 2006-05-25 13:50:25.000000000 -0400
@@ -1,45 +0,0 @@
-#!/bin/sh
-
-#
-# Copyright 2005 Trusted Computer Solutions, Inc
-# Copyright (C) 2005 Hewlett-Packard Development Company, L.P.
-#
-# Name: dev_allocation - setup user allocatable devices
-#
-
-# Tags
-# chkconfig: 2345 85 21
-# description: perform actions needed for user allocatable devices
-
-# source function library
-. /etc/rc.d/init.d/functions
-
-RETVAL=0
-
-start() {
- #
- # set configured devices into the unallocated state
- #
- DEVS=`/usr/bin/dev_allocator -l | /bin/sed 1d | /bin/awk '{print $1}'`
-
- for DEV in ${DEVS}
- do
- /usr/bin/dev_allocator -u ${DEV}
- done
-
- touch /var/lock/subsys/dev_allocation
-}
-
-case "$1" in
- start)
- start
- ;;
- stop)
- rm -f /var/lock/subsys/dev_allocation
- ;;
- *)
- echo $"Usage: $0 {start|stop}"
- exit 1
-esac
-
-exit $RETVAL
--- dev_allocator/conf/Makefile.rhat 2006-02-13 18:44:38.000000000 -0500
+++ dev_allocator/conf/Makefile 2006-05-25 13:50:25.000000000 -0400
@@ -6,7 +6,7 @@
mkdir -p ${ROOT}/etc/rc.d/init.d
mkdir -p ${ROOT}/usr/share/devallocation/classes
mkdir -p ${ROOT}/etc/devallocation
- cp -f ../conf/dev_allocation ${ROOT}/etc/rc.d/init.d/
- cp -f ../conf/classes/* ${ROOT}/usr/share/devallocation/classes
- cp -f ../conf/supported_device_classes.conf ${ROOT}/etc/devallocation/
+ install -m 755 ../conf/devallocator ${ROOT}/etc/rc.d/init.d/
+ install -m 755 ../conf/classes/* ${ROOT}/usr/share/devallocation/classes
+ install -m 644 ../conf/supported_device_classes.conf ${ROOT}/etc/devallocation/
--- /dev/null 2006-05-24 22:45:32.182209000 -0400
+++ dev_allocator/conf/devallocator 2006-05-25 13:50:25.000000000 -0400
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+#
+# Copyright 2005 Trusted Computer Solutions, Inc
+# Copyright (C) 2005 Hewlett-Packard Development Company, L.P.
+#
+# Name: devallocator - setup user allocatable devices
+#
+
+# Tags
+# chkconfig: 2345 85 21
+# description: perform actions needed for user allocatable devices
+
+# source function library
+. /etc/rc.d/init.d/functions
+
+RETVAL=0
+
+stop() {
+ rm -f /var/lock/subsys/devallocator
+}
+
+start() {
+ #
+ # set configured devices into the unallocated state
+ #
+ DEVS=`/usr/bin/dev_allocator -l | /bin/sed 1d | /bin/awk '{print $1}'`
+
+ for DEV in ${DEVS}
+ do
+ /usr/bin/dev_allocator -u ${DEV}
+ done
+
+ touch /var/lock/subsys/devallocator
+}
+
+case "$1" in
+ restart)
+ stop
+ start
+ ;;
+
+ start)
+ start
+ ;;
+
+ status)
+ if [ -f /var/lock/subsys/devallocator ]; then
+ echo $"$0 started
+"
+ else
+ echo $"$0 stopped"
+ fi
+ ;;
+
+ stop)
+ stop
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop}"
+ exit 1
+esac
+
+exit $RETVAL
--
redhat-lspp mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-lspp