mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-23 18:14:54 +08:00
crda move from sbin to usr/bin
This commit is contained in:
parent
34f6f2717d
commit
93eb302e7e
@ -6,7 +6,7 @@
|
||||
|
||||
pkgname=crda
|
||||
pkgver=1.1.2
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Central Regulatory Domain Agent"
|
||||
arch=('x86_64')
|
||||
url="http://wireless.kernel.org/en/developers/Regulatory/CRDA"
|
||||
@ -29,10 +29,10 @@ build() {
|
||||
package() {
|
||||
cd "${srcdir}"/${pkgname}-${pkgver}
|
||||
|
||||
make DESTDIR="${pkgdir}" UDEV_RULE_DIR=/usr/lib/udev/rules.d/ install
|
||||
make DESTDIR="${pkgdir}" UDEV_RULE_DIR=/usr/lib/udev/rules.d/ SBINDIR=/usr/bin/ install
|
||||
sed 's|/sbin/crda|/usr/bin/crda|' -i "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
|
||||
# This rule automatically sets the regulatory domain when cfg80211 is loaded
|
||||
echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/etc/rc.d/wireless-regdom start >/dev/null"' >> "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
|
||||
echo 'ACTION=="add" SUBSYSTEM=="module", DEVPATH=="/module/cfg80211", RUN+="/usr/bin/set-wireless-regdom"' >> "${pkgdir}"/usr/lib/udev/rules.d/85-regulatory.rules
|
||||
|
||||
install -D -m644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE "${pkgdir}"/usr/share/licenses/crda/LICENSE
|
||||
install -D -m755 "${srcdir}"/set-wireless-regdom "${pkgdir}"/usr/bin/set-wireless-regdom
|
||||
|
Loading…
Reference in New Issue
Block a user