iwd: moved to opt
This commit is contained in:
parent
b46db5669c
commit
6595e6b67b
@ -1,17 +0,0 @@
|
|||||||
drwxr-xr-x root/root etc/
|
|
||||||
drwx------ root/root etc/iwd/
|
|
||||||
drwxr-xr-x root/root etc/rc.d/
|
|
||||||
-rwxr-xr-x root/root etc/rc.d/iwd
|
|
||||||
drwxr-xr-x root/root usr/
|
|
||||||
drwxr-xr-x root/root usr/bin/
|
|
||||||
-rwxr-xr-x root/root usr/bin/iwctl
|
|
||||||
-rwxr-xr-x root/root usr/bin/iwmon
|
|
||||||
drwxr-xr-x root/root usr/sbin/
|
|
||||||
-rwxr-xr-x root/root usr/sbin/iwd
|
|
||||||
drwxr-xr-x root/root usr/share/
|
|
||||||
drwxr-xr-x root/root usr/share/dbus-1/
|
|
||||||
drwxr-xr-x root/root usr/share/dbus-1/system.d/
|
|
||||||
-rw-r--r-- root/root usr/share/dbus-1/system.d/iwd-dbus.conf
|
|
||||||
drwxr-xr-x root/root var/
|
|
||||||
drwxr-xr-x root/root var/lib/
|
|
||||||
drwx------ root/root var/lib/iwd/
|
|
@ -1,6 +0,0 @@
|
|||||||
untrusted comment: verify with /etc/ports/contrib.pub
|
|
||||||
RWSagIOpLGJF31iP1WSf2EEHuk5lVjpmZ7z8hIJASLMW5RGqoMzfi6jbQOU4H16Z+tLfAnjG6ydcbRdPFuBDlReGzScpVx1vRQI=
|
|
||||||
SHA256 (Pkgfile) = 5e35493d6e3b3485900ac7dedf9d426ec813d184d3d2129b77501f074487a8c9
|
|
||||||
SHA256 (.footprint) = c79639b76d59f1fb0815f15172c433a8374c82a6d2f5599cc82c9b8a301330b0
|
|
||||||
SHA256 (iwd-0.21.tar.xz) = fb15a390cb1a6ffbf3c45fbc5ed1f1e565be2677d23cad117b168f1828edaa70
|
|
||||||
SHA256 (iwd) = f0eaab15666fed402e984ff12a923ce857a4985ab2e6e00c8da35fecb81c219e
|
|
28
iwd/Pkgfile
28
iwd/Pkgfile
@ -1,28 +0,0 @@
|
|||||||
# Description: Wireless daemon for Linux
|
|
||||||
# URL: https://iwd.wiki.kernel.org/
|
|
||||||
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
||||||
|
|
||||||
name=iwd
|
|
||||||
version=0.21
|
|
||||||
release=1
|
|
||||||
source=(https://www.kernel.org/pub/linux/network/wireless/$name-$version.tar.xz
|
|
||||||
iwd)
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd $name-$version
|
|
||||||
|
|
||||||
./configure --prefix=/usr \
|
|
||||||
--libexecdir=/usr/sbin \
|
|
||||||
--localstatedir=/var \
|
|
||||||
--sysconfdir=/etc \
|
|
||||||
--disable-systemd-service
|
|
||||||
|
|
||||||
make
|
|
||||||
make DESTDIR=$PKG install
|
|
||||||
|
|
||||||
install -d -m 0700 $PKG/var/lib/iwd
|
|
||||||
install -d -m 0700 $PKG/etc/iwd
|
|
||||||
|
|
||||||
# rc script
|
|
||||||
install -D -m 0755 $SRC/iwd $PKG/etc/rc.d/iwd
|
|
||||||
}
|
|
53
iwd/iwd
53
iwd/iwd
@ -1,53 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# /etc/rc.d/iwd: start/stop wireless interface
|
|
||||||
#
|
|
||||||
|
|
||||||
SSD=/sbin/start-stop-daemon
|
|
||||||
PROG_DHCP=/sbin/dhcpcd
|
|
||||||
PROG_WIFI=/usr/sbin/iwd
|
|
||||||
PID_DHCP=/var/run/dhcpcd.pid
|
|
||||||
PID_WIFI=/var/run/iwd.pid
|
|
||||||
|
|
||||||
OPTS_DHCP=""
|
|
||||||
OPTS_WIFI=""
|
|
||||||
|
|
||||||
|
|
||||||
print_status() {
|
|
||||||
$SSD --status --pidfile $2
|
|
||||||
case $? in
|
|
||||||
0) echo "$1 is running with pid $(cat $2)" ;;
|
|
||||||
1) echo "$1 is not running but the pid file $2 exists" ;;
|
|
||||||
3) echo "$1 is not running" ;;
|
|
||||||
4) echo "Unable to determine the program status" ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
case $1 in
|
|
||||||
start)
|
|
||||||
$SSD --start -bmC --pidfile $PID_WIFI --exec $PROG_WIFI -- $OPTS_WIFI && \
|
|
||||||
$SSD --start --pidfile $PID_DHCP --exec $PROG_DHCP -- $OPTS_DHCP
|
|
||||||
RETVAL=$?
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
( $SSD --stop --retry 10 --pidfile $PID_DHCP
|
|
||||||
$SSD --stop --remove-pidfile --retry 10 --pidfile $PID_WIFI )
|
|
||||||
RETVAL=$?
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
$0 stop
|
|
||||||
$0 start
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
print_status $PROG_WIFI $PID_WIFI
|
|
||||||
print_status $PROG_DHCP $PID_DHCP
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Usage: $0 [start|stop|restart|status]"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit $RETVAL
|
|
||||||
|
|
||||||
# End of file
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user