2022-02-05 14:23:32 +00:00
|
|
|
# Copyright (C) 2021-present Fewtarius
|
|
|
|
|
|
|
|
PKG_NAME="system-utils"
|
2023-05-01 21:16:24 +00:00
|
|
|
PKG_VERSION=""
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_ARCH="any"
|
|
|
|
PKG_LICENSE="mix"
|
|
|
|
PKG_DEPENDS_TARGET="toolchain sleep"
|
|
|
|
PKG_SITE=""
|
|
|
|
PKG_URL=""
|
2022-12-30 14:22:04 +00:00
|
|
|
PKG_LONGDESC="Hardware button support scripts."
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-03-06 02:04:10 +00:00
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/autostart/common
|
|
|
|
cp ${PKG_DIR}/sources/autostart/common/* ${INSTALL}/usr/lib/autostart/common
|
|
|
|
|
2022-03-16 00:10:56 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
2022-03-06 02:04:10 +00:00
|
|
|
cp ${PKG_DIR}/sources/scripts/fancontrol ${INSTALL}/usr/bin
|
|
|
|
cp ${PKG_DIR}/sources/scripts/headphone_sense ${INSTALL}/usr/bin
|
2023-08-08 12:13:09 +00:00
|
|
|
cp ${PKG_DIR}/sources/scripts/hdmi_sense ${INSTALL}/usr/bin
|
2022-03-06 02:04:10 +00:00
|
|
|
cp ${PKG_DIR}/sources/scripts/volume_sense ${INSTALL}/usr/bin
|
2023-01-27 01:14:02 +00:00
|
|
|
cp ${PKG_DIR}/sources/scripts/bluetooth_sense ${INSTALL}/usr/bin
|
2023-02-06 12:24:56 +00:00
|
|
|
cp ${PKG_DIR}/sources/scripts/ledcontrol ${INSTALL}/usr/bin
|
2022-10-02 16:46:51 +00:00
|
|
|
if [ -d "${PKG_DIR}/sources/devices/${DEVICE}" ]
|
2022-03-28 20:28:22 +00:00
|
|
|
then
|
2022-10-02 16:46:51 +00:00
|
|
|
cp ${PKG_DIR}/sources/devices/${DEVICE}/* ${INSTALL}/usr/bin
|
|
|
|
if [ -d "${PKG_DIR}/sources/autostart/${DEVICE}" ]
|
|
|
|
then
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/autostart/${DEVICE}
|
|
|
|
cp ${PKG_DIR}/sources/autostart/${DEVICE}/002-overclock ${INSTALL}/usr/lib/autostart/${DEVICE}
|
|
|
|
chmod 0755 ${INSTALL}/usr/lib/autostart/${DEVICE}/*
|
|
|
|
fi
|
2022-03-28 20:28:22 +00:00
|
|
|
fi
|
2022-02-05 14:23:32 +00:00
|
|
|
chmod 0755 ${INSTALL}/usr/bin/*
|
|
|
|
|
2022-03-16 00:10:56 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/config
|
|
|
|
cp ${PKG_DIR}/sources/config/fancontrol.conf ${INSTALL}/usr/config/fancontrol.conf.sample
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
2023-01-27 01:14:02 +00:00
|
|
|
|