SPECS: hylafax.spec - use grep -q to check for faxgetty entry - fi...
qboosh
qboosh at pld-linux.org
Thu Jan 25 12:06:43 CET 2007
Author: qboosh Date: Thu Jan 25 11:06:43 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use grep -q to check for faxgetty entry
- fixed faxgetty entry removal
---- Files affected:
SPECS:
hylafax.spec (1.49 -> 1.50)
---- Diffs:
================================================================
Index: SPECS/hylafax.spec
diff -u SPECS/hylafax.spec:1.49 SPECS/hylafax.spec:1.50
--- SPECS/hylafax.spec:1.49 Wed Jan 3 22:36:46 2007
+++ SPECS/hylafax.spec Thu Jan 25 12:06:37 2007
@@ -267,7 +267,7 @@
%service hylafax restart
if [ "$1" = 1 ]; then
- grep -i "faxgetty entry" /etc/inittab || \
+ grep -q -i "faxgetty entry" /etc/inittab || \
echo -e "# FaxGetty Entry\n#t0:23:respawn:%{_sbindir}/faxgetty ttyS0" >> /etc/inittab
echo "Please check if new fax entry in /etc/inittab is correct."
echo "Run \"%{_sbindir}/faxsetup -server\" to configure your fax server"
@@ -278,7 +278,7 @@
if [ "$1" = "0" ] ; then
%service hylafax stop
/sbin/chkconfig --del hylafax
- %{__sed} -i -e 's!^.*faxgetty.*$!!' /etc/inittab
+ %{__sed} -i -e 's!^.*[Ff]ax[Gg]etty.*$!!' /etc/inittab
/sbin/telinit q
fi
@@ -398,6 +398,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.50 2007/01/25 11:06:37 qboosh
+- use grep -q to check for faxgetty entry
+- fixed faxgetty entry removal
+
Revision 1.49 2007/01/03 21:36:46 areq
- 4.3.1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/hylafax.spec?r1=1.49&r2=1.50&f=u
More information about the pld-cvs-commit
mailing list