summaryrefslogtreecommitdiff
path: root/testing/rfkill
diff options
context:
space:
mode:
Diffstat (limited to 'testing/rfkill')
-rw-r--r--testing/rfkill/PKGBUILD39
-rw-r--r--testing/rfkill/conf.d20
-rwxr-xr-xtesting/rfkill/rc.d38
-rw-r--r--testing/rfkill/rules.d1
-rw-r--r--testing/rfkill/service11
5 files changed, 0 insertions, 109 deletions
diff --git a/testing/rfkill/PKGBUILD b/testing/rfkill/PKGBUILD
deleted file mode 100644
index 2d03e6dbb..000000000
--- a/testing/rfkill/PKGBUILD
+++ /dev/null
@@ -1,39 +0,0 @@
-# $Id: PKGBUILD 165297 2012-08-15 01:17:54Z bisson $
-# Maintainer: Gaetan Bisson <bisson@archlinux.org>
-# Contributor: Thomas Bächler <thomas@archlinux.org>
-# Contributor: Giovanni Scafora <giovanni@archlinux.org>
-
-pkgname=rfkill
-pkgver=0.4
-pkgrel=5
-pkgdesc='Tool for enabling and disabling wireless devices'
-url='http://linuxwireless.org/en/users/Documentation/rfkill'
-license=('custom')
-arch=('i686' 'x86_64')
-source=("http://wireless.kernel.org/download/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
- 'rules.d'
- 'service'
- 'conf.d'
- 'rc.d')
-sha1sums=('fccabf5a272ac2891f24dc35449dc6f4c45ff44b'
- '6390eaa793b473098aaa11b13c5254d611a4c13a'
- 'cadc563f967c5ac680e7cdfd764718b412201f8a'
- 'd969fe927a9fb2926af43a311a7c1fa126fe59a9'
- '380af0b002f51543557306ed68a27f0059fd5a6f')
-
-backup=('etc/conf.d/rfkill')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -Dm644 ../rules.d "${pkgdir}/usr/lib/udev/rules.d/60-rfkill.rules"
- install -Dm644 ../service "${pkgdir}/usr/lib/systemd/system/rfkill.service"
- install -Dm644 ../conf.d "${pkgdir}/etc/conf.d/rfkill"
- install -Dm755 ../rc.d "${pkgdir}/etc/rc.d/rfkill"
-}
diff --git a/testing/rfkill/conf.d b/testing/rfkill/conf.d
deleted file mode 100644
index 4483da26c..000000000
--- a/testing/rfkill/conf.d
+++ /dev/null
@@ -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"
diff --git a/testing/rfkill/rc.d b/testing/rfkill/rc.d
deleted file mode 100755
index ce90ee150..000000000
--- a/testing/rfkill/rc.d
+++ /dev/null
@@ -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
diff --git a/testing/rfkill/rules.d b/testing/rfkill/rules.d
deleted file mode 100644
index bc98a3bef..000000000
--- a/testing/rfkill/rules.d
+++ /dev/null
@@ -1 +0,0 @@
-KERNEL=="rfkill", GROUP="rfkill", MODE="0664"
diff --git a/testing/rfkill/service b/testing/rfkill/service
deleted file mode 100644
index decd5b6fc..000000000
--- a/testing/rfkill/service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=RFKill-Block Selected Devices
-
-[Service]
-Type=oneshot
-ExecStart=/usr/sbin/rfkill block 9999
-ExecStop=/usr/sbin/rfkill unblock all
-RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target