[arch-commits] Commit in rfkill/trunk (PKGBUILD conf.d rc.d)
Gaetan Bisson
bisson at nymeria.archlinux.org
Mon May 13 10:08:45 UTC 2013
Date: Monday, May 13, 2013 @ 12:08:45
Author: bisson
Revision: 185324
remove deprecated rc script
Modified:
rfkill/trunk/PKGBUILD
Deleted:
rfkill/trunk/conf.d
rfkill/trunk/rc.d
----------+
PKGBUILD | 12 ++----------
conf.d | 20 --------------------
rc.d | 38 --------------------------------------
3 files changed, 2 insertions(+), 68 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-13 10:07:43 UTC (rev 185323)
+++ PKGBUILD 2013-05-13 10:08:45 UTC (rev 185324)
@@ -13,18 +13,12 @@
source=("http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
'service.unblock'
'service.block'
- 'rules.d'
- 'conf.d'
- 'rc.d')
+ 'rules.d')
sha1sums=('fccabf5a272ac2891f24dc35449dc6f4c45ff44b'
'4d0ef151891c32c882dcec8b03ab7204f015d0d1'
'c44581c4cc19509f53afd0abea1341cc30751fe2'
- '6390eaa793b473098aaa11b13c5254d611a4c13a'
- 'd969fe927a9fb2926af43a311a7c1fa126fe59a9'
- '380af0b002f51543557306ed68a27f0059fd5a6f')
+ '6390eaa793b473098aaa11b13c5254d611a4c13a')
-backup=('etc/conf.d/rfkill')
-
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make
@@ -37,6 +31,4 @@
install -Dm644 ../rules.d "${pkgdir}/usr/lib/udev/rules.d/60-rfkill.rules"
install -Dm644 ../service.block "${pkgdir}/usr/lib/systemd/system/rfkill-block at .service"
install -Dm644 ../service.unblock "${pkgdir}/usr/lib/systemd/system/rfkill-unblock at .service"
- install -Dm644 ../conf.d "${pkgdir}/etc/conf.d/rfkill"
- install -Dm755 ../rc.d "${pkgdir}/etc/rc.d/rfkill"
}
Deleted: conf.d
===================================================================
--- conf.d 2013-05-13 10:07:43 UTC (rev 185323)
+++ conf.d 2013-05-13 10:08:45 UTC (rev 185324)
@@ -1,20 +0,0 @@
-#
-# /etc/conf.d/rfkill
-# Configuration for the rfkill startup script
-#
-
-# List of devices to block on startup (space-separated)
-RFKILL_BLOCK=""
-
-# List of devices to unblock on startup (space-separated)
-RFKILL_UNBLOCK="all"
-
-# Supported device names are: all, wifi, bluetooth, umb, wimax, wwan, gps and specific device names like phy0, hci0, ...
-# See "rfkill list" for available devices
-# Examples:
-#
-# Block all bluetooth devices:
-# RFKILL_BLOCK="bluetooth"
-#
-# Unblock the phy0 wifi device and all wwan devices:
-# RFKILL_UNBLOCK="phy0 wwan"
Deleted: rc.d
===================================================================
--- rc.d 2013-05-13 10:07:43 UTC (rev 185323)
+++ rc.d 2013-05-13 10:08:45 UTC (rev 185324)
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/rfkill
-
-case "$1" in
- start)
- for device in ${RFKILL_BLOCK}; do
- stat_busy "Blocking rfkill device: ${device}"
- /usr/sbin/rfkill block ${device}
- if [ $? -eq 0 ]; then
- stat_done
- else
- stat_fail
- fi
- done
- for device in ${RFKILL_UNBLOCK}; do
- stat_busy "Unblocking rfkill device: ${device}"
- /usr/sbin/rfkill unblock ${device}
- if [ $? -eq 0 ]; then
- stat_done
- else
- stat_fail
- fi
- done
- ;;
- stop)
- ;;
- restart)
- $0 start
- ;;
- *)
- echo "usage: $0 {start}"
- exit 1
- ;;
-esac
-exit 0
More information about the arch-commits
mailing list