Merge pull request #72 from fewtarius/dev

Fixes
This commit is contained in:
fewtarius 2022-04-17 10:29:44 -04:00 committed by GitHub
commit 6beac3aaab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 29 deletions

View file

@ -2,11 +2,18 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2020-present Fewtarius
MIN=1
MAX=100
STEP=1
if [[ -n "$2" ]]; then
STEP=$2
MAX=$(cat /sys/class/backlight/backlight/max_brightness)
if [ "${MAX}" = 255 ]
then
STEP=17
else
STEP=6
fi
if [[ -n "$2" ]]; then
STEP=$2
fi
# Ensure set_setting exists in all contexts

View file

@ -25,7 +25,6 @@ Passphrase=${PSK}
EOF
connmanctl enable wifi 2>/dev/null
iw wlan0 set power_save off 2>/dev/null
connmanctl scan wifi 2>/dev/null
;;
"disable")

View file

@ -1,13 +1,13 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
# Copyright (C) 2022-present Fewtarius
PKG_NAME="wpa_supplicant"
PKG_VERSION="2.9"
PKG_SHA256="fcbdee7b4a64bea8177973299c8c824419c413ec2e3a95db63dd6a5dc3541f17"
PKG_VERSION="2.10"
PKG_LICENSE="GPL"
PKG_SITE="https://w1.fi/wpa_supplicant/"
PKG_URL="https://w1.fi/releases/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_URL="https://w1.fi/releases/${PKG_NAME}-${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain dbus libnl openssl"
PKG_LONGDESC="A free software implementation of an IEEE 802.11i supplicant."
PKG_TOOLCHAIN="make"
@ -17,20 +17,20 @@ PKG_MAKE_OPTS_TARGET="-C wpa_supplicant V=1 LIBDIR=/usr/lib BINDIR=/usr/bin"
PKG_MAKEINSTALL_OPTS_TARGET="-C wpa_supplicant V=1 LIBDIR=/usr/lib BINDIR=/usr/bin"
configure_target() {
LDFLAGS="$LDFLAGS -lpthread -lm"
LDFLAGS="${LDFLAGS} -lpthread -lm"
cp $PKG_DIR/config/makefile.config wpa_supplicant/.config
cp ${PKG_DIR}/config/makefile.config wpa_supplicant/.config
}
post_makeinstall_target() {
rm -r $INSTALL/usr/bin/wpa_cli
rm -r ${INSTALL}/usr/bin/wpa_cli
mkdir -p $INSTALL/etc/dbus-1/system.d
cp wpa_supplicant/dbus/dbus-wpa_supplicant.conf $INSTALL/etc/dbus-1/system.d
mkdir -p ${INSTALL}/etc/dbus-1/system.d
cp wpa_supplicant/dbus/dbus-wpa_supplicant.conf ${INSTALL}/etc/dbus-1/system.d
mkdir -p $INSTALL/usr/lib/systemd/system
cp wpa_supplicant/systemd/wpa_supplicant.service $INSTALL/usr/lib/systemd/system
mkdir -p ${INSTALL}/usr/lib/systemd/system
cp wpa_supplicant/systemd/wpa_supplicant.service ${INSTALL}/usr/lib/systemd/system
mkdir -p $INSTALL/usr/share/dbus-1/system-services
cp wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service $INSTALL/usr/share/dbus-1/system-services
mkdir -p ${INSTALL}/usr/share/dbus-1/system-services
cp wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service ${INSTALL}/usr/share/dbus-1/system-services
}

View file

@ -1,12 +0,0 @@
diff -Naur wpa_supplicant-2.4/src/drivers/drivers.mk wpa_supplicant-2.4.patch/src/drivers/drivers.mk
--- wpa_supplicant-2.4/src/drivers/drivers.mk 2015-03-15 18:30:39.000000000 +0100
+++ wpa_supplicant-2.4.patch/src/drivers/drivers.mk 2015-03-17 13:16:01.390789977 +0100
@@ -35,7 +35,7 @@
ifdef CONFIG_LIBNL32
DRV_LIBS += -lnl-3
DRV_LIBS += -lnl-genl-3
- DRV_CFLAGS += -DCONFIG_LIBNL20 -I/usr/include/libnl3
+ DRV_CFLAGS += -DCONFIG_LIBNL20 `pkg-config --cflags libnl-3.0`
ifdef CONFIG_LIBNL3_ROUTE
DRV_LIBS += -lnl-route-3
DRV_CFLAGS += -DCONFIG_LIBNL3_ROUTE