Fix spectrum2 init script

This commit is contained in:
Sergey Morozov 2016-11-26 03:18:09 +03:00
parent cc1b2926fb
commit 2f3dcb9699
2 changed files with 16 additions and 2 deletions

View File

@ -3,7 +3,7 @@ AUX spectrum.cfg 4770 SHA256 c29eb5bed5776bdce171eb303e0e6815b60dc3c61f2a3114922
AUX spectrum.confd 157 SHA256 5f1c7a7c614ffb15ba64caadd560088cf3a8032f3973489a31f65c89ce286c85 SHA512 511213a0bb4d91b22d3c9ac8e90978248076a9697cbeaa5bfd53eaac3ce1850f78739768dc88f2443519b64dc61f278be32ed408f0c7b2f64f29c01f94fc5fee WHIRLPOOL 5fee736176e83e264af7229836bec5a09bcd598cfaaf7dea9f8362e3c864d6a241128d96c9030d3640247692b250b39d7d1f906bad7caa2c08961d10468a445d
AUX spectrum.initd 592 SHA256 80c37c82dcd1b867400de4e23433ec0b822418d2858b441dd464259e650bf27b SHA512 ed6a168a42842969804938ef7fd1a4d0d6c8a98feb5727ac41b21c22a874a4ebb1410b760e396c2f9296207fca7499a07ee85b994d2f9222cca0c834c559ff17 WHIRLPOOL 3c36392881880806af8f47983cc742d735aa2597b7444c26021d5d9038b1c3b9c658df474e23722727116ff8b2d7052209d68fa14241d5e0f0d42da032f7fa37
AUX spectrum.symlink.cfg 4855 SHA256 3dfb88f041ae3a835241ea4c128ce6958a95f944534349aebdb56d9d74efe1f3 SHA512 bdd31ae8093a10e6d4f8851451230cccf47132e3374b46863e03b793d4495901f366858dd8b2ea02143f932cf5abc63f4719be3b8ef0325fea6db11e54d458ad WHIRLPOOL 363dd7aaa569b061b2b0e09a1cfa9280f87d1c26c503a14b921e7a36ec956b7d517a668fe64be170f2fc73b1658439cca449e4f043b3c94714055d9c8c27fdf7
AUX spectrum2.initd 636 SHA256 89e516647bda5c039fe933837212a79f9390879938ba1abd3b0a187066a687be SHA512 07b728025b1df78f1e3c9141b516b07d85dfeb7c8d51f077627c544d21f1e7b0be99444fe92f78a675e583d2d3b67bcb091f1bb2b90a0eb19bf8cf794cfeab60 WHIRLPOOL 65032107ffa1931b28ce9f9b614dc681f20a29b42e16af5a9a2ff87e98937ca83994d3c8f2c1365a9c34384b6e6a7440f1e7199483c2110051da50afc92549b6
AUX spectrum2.initd 870 SHA256 a286bbb5e2c7fb669d0b87eb675813fba8c85840d902fe3a74988ab9f78f0677 SHA512 7d613d500c0c587ae98e4b75f9de128bc5e5d930f5e307c9e2609577d6bf72ed75148fd664297107f8b6412a47d8362b1c91b60b1b0d02e40e17d27302b2b0ff WHIRLPOOL 673757f73060b90ad34a0f4cbf8b8b47b459bbd9c9b48ee8d8e4392c504490f1e8b1e0e38d24968c7a6f232be72f3087f75bc2311c353ea41bec0332f634c5fe
DIST spectrum-1.4.8.tar.gz 239725 SHA256 40045139cdeb7fbc085fe80bb8124b518bb57520fbb644bc50b132de8cebc3cc SHA512 05f5932ba4e5d42107b2bf1396d5c410a792d9692841d82676eaf136b0a051b9efa3232d6a82d3ad1fe4b4d77b8e6e34e005145456957633bc88a9b5d3095094 WHIRLPOOL 822fd187282bb663073aa80b2358b4314193db43387f493fee5161c7992e9dda9accbf3609c3f5ee4cc3aea63b733284a5b2c77a0187332432a608c9f21d39a2
DIST spectrum-2.0.0-beta2.tar.gz 273480 SHA256 51e0db3000de13258b4a2562a40511d40eb6e39aa45728f4ae5efcd520b2c4c7 SHA512 95caa53f8f13c822a6e07635fb9b7e277a4fa97505d5020649ef77221033b3aa23bb6fc0cd3756ed440ef19d5a141f24122d975b063320cecce3a3a02a4a7b64 WHIRLPOOL 9a215317dd7d50482248cb0aa06f0a18052bc3270ee0a1632736b23cfa86a7c640ed991150959648d93c77007b13a3a5af8a057fb192ccbaf328ef61bd42d6f2
EBUILD spectrum-1.4.8.ebuild 3656 SHA256 a1b79306dbfb807582a9d9660a67f279ee0077c69d500442dbb9514fc93c0f39 SHA512 d9b279e1d7db99b0700b051b68ab8d708ee8663235e4777685d60849dbf56e60d54a3c54f4f4051c89149ba2e8a395b6bc2796d11729314719054c6c9757318e WHIRLPOOL 387bfd16b75c3007ae80da4e682afcf56a2d78aa47671d138e4e1692feb1f459230e0572cce46a7c36273e7976a72195f0a5720e663ac5a3aa53705903722367

View File

@ -1,4 +1,4 @@
#!/sbin/runscript
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
@ -23,3 +23,17 @@ stop() {
--exec /usr/bin/spectrum2_manager stop 1>>$LOGFILE 2>&1
eend $?
}
status() {
local _retval
einfon ""
/usr/bin/spectrum2_manager status &> /dev/null
_retval=$?
if [ x${_retval} = 'x0' ]; then
mark_service_started "${SVCNAME}"
eend 0
else
mark_service_stopped "${SVCNAME}"
eend 3
fi
}