Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=1973665b3e5641f3f68203439e7908325d03d2a3

commit 1973665b3e5641f3f68203439e7908325d03d2a3
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Sep 17 11:35:18 2010 +0000

genpower-1.0.2-10-i686
*delete useless rc script

diff --git a/source/apps-extra/genpower/rc.ups.new 
b/source/apps-extra/genpower/rc.ups.new
deleted file mode 100644
index eeba467..0000000
--- a/source/apps-extra/genpower/rc.ups.new
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/bash
-
-# (c) 2005 Marcus Habermehl <bmh198...@yahoo.de>
-# (c) 2003 Vajna Miklos <vmik...@frugalware.org>
-# (c)      Patrick J. Volkerding, <volke...@slackware.com>
-# rc.ups for FrugalWare
-# distributed under GPL License
-
-# chkconfig: 2345 98 98
-# description: Monitor the UPS with genpowerd
-
-source /lib/initscripts/functions
-TEXTDOMAIN=ups
-
-actions=(restart start status stop)
-daemon=$"genpowerd daemon"
-
-pid="$(pidof genpowerd 2> /dev/null)"
-
-rc_start()
-{
-       start_msg
-       if [ -e /etc/sysconfig/ups ] && [ -z ${pid} ] ; then
-               source /etc/sysconfig/ups
-               if [ -z ${device} ] ; then
-                       /sbin/genpowerd ${device} ${type}
-                       ok $?
-               else
-                       ok 999
-                       hint $"You need to edit /etc/sysconfig/ups"
-               fi
-       else
-               ok 999
-       fi
-}
-
-rc_stop()
-{
-       stop_msg
-       if [ -e /etc/sysconfig/ups ] && [ ! -z ${pid} ] ; then
-               source /etc/sysconfig/ups
-               if grep -q FAIL /etc/upsstatus && [ -z ${device} ] ; then
-                       if [ -z ${device} ] ; then
-                               /sbin/genpowerd -k ${device} ${type}
-                               ok $?
-                       else
-                               ok 999
-                               hint $"You need to edit /etc/sysconfig/ups"
-                       fi
-               fi
-       else
-               ok 999
-       fi
-}
-
-rc_exec $1
-
-# vim: ft=sh
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to