diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-03-22 15:22:28 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2009-03-22 15:22:28 +0000 |
commit | c694b85204291c363b4a24580c5d9b0b1fff754f (patch) | |
tree | 9f679667b46a9cbca35cbb2b11880f137654f984 /sys-power/apcupsd | |
parent | Stable on alpha, bug #258344 (diff) | |
download | historical-c694b85204291c363b4a24580c5d9b0b1fff754f.tar.gz historical-c694b85204291c363b4a24580c5d9b0b1fff754f.tar.bz2 historical-c694b85204291c363b4a24580c5d9b0b1fff754f.zip |
Make the powerfail init script POSIX-compilant, thanks to Davide Pesavento.
Package-Manager: portage-2.2_rc26/cvs/Linux x86_64
Diffstat (limited to 'sys-power/apcupsd')
-rw-r--r-- | sys-power/apcupsd/ChangeLog | 7 | ||||
-rw-r--r-- | sys-power/apcupsd/Manifest | 10 | ||||
-rw-r--r-- | sys-power/apcupsd/files/apcupsd.powerfail.init | 4 |
3 files changed, 13 insertions, 8 deletions
diff --git a/sys-power/apcupsd/ChangeLog b/sys-power/apcupsd/ChangeLog index 574af6ad09cf..a2456e081ebe 100644 --- a/sys-power/apcupsd/ChangeLog +++ b/sys-power/apcupsd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-power/apcupsd # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.43 2009/03/22 13:58:12 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/ChangeLog,v 1.44 2009/03/22 15:22:28 flameeyes Exp $ + + 22 Mar 2009; Diego E. Pettenò <flameeyes@gentoo.org> + files/apcupsd.powerfail.init: + Make the powerfail init script POSIX-compilant, thanks to Davide + Pesavento. *apcupsd-3.14.5-r2 (22 Mar 2009) diff --git a/sys-power/apcupsd/Manifest b/sys-power/apcupsd/Manifest index ab7fb63314dd..622f6940b1d7 100644 --- a/sys-power/apcupsd/Manifest +++ b/sys-power/apcupsd/Manifest @@ -12,19 +12,19 @@ AUX 3.12.4/exit-status-build.patch 803 RMD160 c55fa78dbb454955135409eed3e0d737cd AUX 3.12.4/no-parallel.patch 339 RMD160 c6e50aa5b22438e02e17df4fda41c7cae371217f SHA1 4d20db0882272b9c472b1ea994d115310bcab6d3 SHA256 3bcd10a6f7c623496a75d8cc321becbc24162372936dab4e696b0322c46e4c62 AUX 3.12.4/no-strip.patch 2181 RMD160 aa2d852fa223e2c5b18426a5334a1e3ee05b9cdc SHA1 b7952c4102fd810cb325c3cd6ab58592aa3cf527 SHA256 d45668c87581c1f5dd3a235578b291af157678480536d501c7f60b1cdfb0edab AUX apcupsd.init.2 838 RMD160 fdca4e15d5f475c43147ce65624a4355e6ed9279 SHA1 b34596c601f368ed5028d661f7dd79630bfef4a9 SHA256 9c60e920d5946ff581b38c33087ec6a1ed7d8885bc2c9c5621932f5e7c8571d3 -AUX apcupsd.powerfail.init 507 RMD160 97fef59db29e49d69a25caf4ebc876c8caf54c4d SHA1 6dd74928a5cebffa8fde0c7930acd2831009efe0 SHA256 4c3b882e55dc658fb4f9d66cc97a521d5eb77159a1d47d457e43c44d1722dfd4 +AUX apcupsd.powerfail.init 520 RMD160 24f766871652220523a18885f41f6608f29ab670 SHA1 0c5f97e556504904ffd6d72ff27ef792ac70e18c SHA256 eee773aa07175674085cb0ab7ed2c071fcc04fc05383d368f38d056e7327ff35 DIST apcupsd-3.10.18.tar.gz 5698299 RMD160 ebaf99e097d836ff8858cf653a825928058f54dd SHA1 a4e0f968be13c833ec25869f686e44c5a34e7964 SHA256 ae42d64e5cb29c8ce291f634139b5c81e888c95686f5c70ac9c250a1d8c02a38 DIST apcupsd-3.12.4.tar.gz 4223158 RMD160 a54c2f6d71c902d7963a1c65a3850f657aabaa88 SHA1 a36212d9634d36beda2318d85b882209763f2473 SHA256 e2c789089a71f8bafc2812a5e20b73f5420e4c234961afb53a30f6ff891640ba DIST apcupsd-3.14.5.tar.gz 4172931 RMD160 76dadfb241b69a9603cc6f06ef4549a1aa3ac55e SHA1 c28685a2ccd0565b4c5d9e972773b18a915562a9 SHA256 f48a75139d5701d13444128da6f9f6feea04da8524e8ba3bce2c21bdbedba49e EBUILD apcupsd-3.10.18-r1.ebuild 2614 RMD160 4136189b375cdd5b50fa1e98bcff757406ea8e66 SHA1 de25eb0d627ca017c4f5d27119ffaba709125735 SHA256 f5004d36d0c5a41df6c4fa9fe5e2cc3c49894a7aef927e79cfb72a1cce04ee39 EBUILD apcupsd-3.12.4.ebuild 3028 RMD160 257a1dcc849ba616569693b7fb685c7be4a5d6f8 SHA1 41a0e20c82b02fe9158f3a45bd816fa66c4ac46a SHA256 86c0a2f5ffe869f5ea0db0220264d1109dcab7f4c395533e8dd5c87c478b59c9 EBUILD apcupsd-3.14.5-r2.ebuild 3623 RMD160 0cf070c17b229abae6ce63695ed5daab377236f3 SHA1 f1ef1feb3788bce643b08b69d99336ea6937b6f9 SHA256 defe94c26ef8cf6cb9dc2d1809236ec7d3d6468cc659ab2fbdbbe247ed264ee6 -MISC ChangeLog 20242 RMD160 57f03f5f2d30036bc585ea71835ea159696c635a SHA1 d16cf316948c90bf696813346cd0d0d586d659c0 SHA256 9ada06d1f8d6341e2d64a4a914709af2e0c2c852d71ae6d93ceac198bdb62b40 +MISC ChangeLog 20411 RMD160 e59025454e5b931a13e7bc2a20cfb6d25a33d7cd SHA1 c69f21a9aa32c4c4fe6bba38225b106d51ee093e SHA256 48db9bdab416e06c7c8471eb7ad9b210c948db1e750d0dd01ffaed54268724b1 MISC metadata.xml 237 RMD160 2a4fab832a64fbdafe2cd6f59b141b2aa80797ac SHA1 75878fb1a17b8617882c9e02331a6643d647882b SHA256 368acc29aa9214adaa137c17b114b16c6a021c4dfc9efa5f3440e968db04a9b3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) -iEYEARECAAYFAknGQ/kACgkQAiZjviIA2XiFMwCfW0GwafMMjVP/NWi1Bu1dl53U -jjoAoPNFnsCT7InHPRJBsZPDdmbAfiRz -=7jKv +iEYEARECAAYFAknGV7kACgkQAiZjviIA2XiDVgCghNq0JVsE5xHYSV/ofq0fC16h +nlsAni4X9WMEjW8R+F8UHUMztmtdcQEy +=Bej2 -----END PGP SIGNATURE----- diff --git a/sys-power/apcupsd/files/apcupsd.powerfail.init b/sys-power/apcupsd/files/apcupsd.powerfail.init index 35ee364c80ca..49c5db45c800 100644 --- a/sys-power/apcupsd/files/apcupsd.powerfail.init +++ b/sys-power/apcupsd/files/apcupsd.powerfail.init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/files/apcupsd.powerfail.init,v 1.1 2009/03/22 13:58:11 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-power/apcupsd/files/apcupsd.powerfail.init,v 1.2 2009/03/22 15:22:28 flameeyes Exp $ description='Signal the UPS to kill power in a power failure condition' @@ -10,7 +10,7 @@ depend() { } start() { - if [[ $(runlevel) == *' 0' && -f /etc/apcupsd/powerfail ]] ; then + if [ "$(runlevel | cut -d' ' -f2)" = "0" -a -f /etc/apcupsd/powerfail ] ; then ebegin 'Signaling UPS to kill power' /sbin/apcupsd --killpower eend $? |