mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-26 18:52:51 +08:00
🐶 Sync 2026-10-08 03:50:41
This commit is contained in:
1 parent
84ced36b96
commit
0010961c09
20 files changed
+48
-19
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=gowebdav
|
||||
PKG_VERSION:=5.17.0
|
||||
PKG_RELEASE:=24
|
||||
PKG_RELEASE:=25
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/hacdias/webdav/tar.gz/v$(PKG_VERSION)?
|
||||
|
||||
@@ -17,6 +17,6 @@ start() {
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill -9 `pgrep "${WEBDAV}"` >/dev/null 2>&1
|
||||
killall -9 pgrep "${WEBDAV}" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
@@ -12,5 +12,5 @@ start() {
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill -9 `pidof cpulimit | sed "s/$$//g"`
|
||||
killall -9 cpulimit
|
||||
}
|
||||
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-homebridge
|
||||
PKG_VERSION:=0.1.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_DATE:=20200311
|
||||
|
||||
PKG_LICENSE:=GPLv3
|
||||
|
||||
@@ -175,7 +175,7 @@ start_sub_service() {
|
||||
|
||||
stop() {
|
||||
echo "stop function" >> $LOG_FILE
|
||||
kill -9 `pidof homebridge | sed "s/$$//g"` >> $LOG_FILE 2>&1
|
||||
killall -9 homebridge >> $LOG_FILE 2>&1
|
||||
# config_load homebridge
|
||||
# stop_main_service
|
||||
# config_foreach stop_sub_service platform
|
||||
|
||||
@@ -21,7 +21,8 @@ return L.view.extend({
|
||||
load: function() {
|
||||
return Promise.all([
|
||||
L.resolveDefault(callSystemBoard(), {}),
|
||||
L.resolveDefault(fs.read('/proc/sys/net/mptcp/available_path_managers'), '')
|
||||
L.resolveDefault(fs.read('/proc/sys/net/mptcp/available_path_managers'), ''),
|
||||
L.resolveDefault(fs.read('/proc/sys/net/mptcp/scheduler'), '')
|
||||
]);
|
||||
},
|
||||
|
||||
@@ -36,6 +37,11 @@ return L.view.extend({
|
||||
var availablePathManagers = String(res[1] || '').trim().split(/\s+/).filter(function(name) {
|
||||
return name.length > 0;
|
||||
});
|
||||
// The scheduler the kernel actually runs. The mptcp init falls back to
|
||||
// 'default' when the selected one can't be set (a BPF object that fails
|
||||
// to register, a name this kernel doesn't know), and the list below would
|
||||
// otherwise keep showing the selected one.
|
||||
var activeScheduler = String(res[2] || '').trim();
|
||||
|
||||
function normalizeSchedulerValue(value) {
|
||||
if (value == null)
|
||||
@@ -158,6 +164,18 @@ return L.view.extend({
|
||||
return m.checkDepends();
|
||||
};
|
||||
|
||||
scheduler.renderWidget = function(section_id, option_index, cfgvalue) {
|
||||
var widget = form.ListValue.prototype.renderWidget.apply(this, [section_id, option_index, cfgvalue]);
|
||||
var selected = normalizeSchedulerValue(cfgvalue);
|
||||
|
||||
if (activeScheduler && selected && selected != activeScheduler)
|
||||
L.dom.append(widget, E('div', { 'class': 'cbi-value-description' }, [
|
||||
E('strong', {}, _('The kernel uses the %s scheduler: %s could not be enabled, see the system log.').format(activeScheduler, selected))
|
||||
]));
|
||||
|
||||
return widget;
|
||||
};
|
||||
|
||||
o = s.option(form.Flag, "mptcp_dscp_weight_vps_sync", _("Mirror DSCP/weight pins to gateway"),
|
||||
_("When using a DSCP or weight BPF scheduler, also sync each WAN’s pin to the gateway (VPS) so it also holds for traffic the gateway sends (downloads), not just traffic the router sends (uploads). Disabling this only stops future syncs -- it does not remove pins already pushed to the gateway."));
|
||||
o.default = "1";
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
"/usr/lib/mptcpd": [ "list" ],
|
||||
"/usr/share/bpf/scheduler": [ "list" ],
|
||||
"/proc/sys/net/mptcp/available_path_managers": [ "read" ],
|
||||
"/proc/sys/net/mptcp/scheduler": [ "read" ],
|
||||
"/sbin/sysctl -n net.ipv4.tcp_available_congestion_control": [ "exec" ]
|
||||
},
|
||||
"ubus": {
|
||||
|
||||
@@ -25,5 +25,5 @@ start() {
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill -9 `pidof pppoe-relay | sed "s/$$//g"`
|
||||
killall -9 pppoe-relay
|
||||
}
|
||||
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
LUCI_TITLE:=LuCI support for PPPoE Server
|
||||
LUCI_DEPENDS:=+luci-compat +rp-pppoe-common +rp-pppoe-server
|
||||
PKG_VERSION:=20200326
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
define Package/luci-app-pppoe-server/preinst
|
||||
#!/bin/sh
|
||||
|
||||
@@ -97,5 +97,5 @@ stop() {
|
||||
done
|
||||
fi
|
||||
ps | grep "pppd plugin rp-pppoe.so" | grep -v "grep" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
|
||||
kill -q -9 `pidof pppoe-server | sed "s/$$//g"`
|
||||
killall -q -9 pppoe-server
|
||||
}
|
||||
@@ -10,7 +10,7 @@ LUCI_TITLE:=rTorrent LuCI web interface
|
||||
LUCI_DEPENDS:=+rtorrent-rpc +luaexpat +luasocket +luasec +screen
|
||||
|
||||
PKG_VERSION:=0.1.7
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_LICENSE:=GPLv3
|
||||
|
||||
define Package//luci-app-rtorrent/conffiles
|
||||
|
||||
@@ -12,6 +12,6 @@ boot() {
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill `pidof rtorrent | sed "s/$$//g"`
|
||||
killall rtorrent
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ LUCI_TITLE:=LuCI support for speedtest-web
|
||||
LUCI_DEPENDS:=+speedtest-web
|
||||
LUCI_PKGARCH:=all
|
||||
PKG_VERSION:=1.0
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
PKG_MAINTAINER:=<https://github.com/ZeaKyX/luci-app-speedtest-web>
|
||||
|
||||
include $(TOPDIR)/feeds/luci/luci.mk
|
||||
|
||||
@@ -15,5 +15,5 @@ start() {
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill `pidof speedtest-web | sed "s/$$//g"` >/dev/null 2>&1
|
||||
killall speedtest-web >/dev/null 2>&1
|
||||
}
|
||||
+1
-1
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=mptcp
|
||||
PKG_VERSION:=6.1
|
||||
PKG_RELEASE:=21
|
||||
PKG_RELEASE:=22
|
||||
|
||||
PKG_MAINTAINER:=Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
|
||||
@@ -34,13 +34,23 @@ case "$MULTIPATH" in
|
||||
esac
|
||||
MULTIPATH_ID="$(uci -q get network.$MP_INTERFACE.metric)"
|
||||
|
||||
# An update gives the endpoint the new address, unless omr-tracker has the
|
||||
# interface down: as in mptcp's init script, the endpoint then stays out of
|
||||
# MPTCP, and 003-up adds it back once the tracker sees the interface up again
|
||||
_tracker_down() {
|
||||
[ "$(uci -q -P /var/state get openmptcprouter.$MP_INTERFACE.state)" = "down" ] || return 1
|
||||
logger -t "mptcp" "$DEVICE tracker state is down, not adding it back to MPTCP"
|
||||
}
|
||||
|
||||
if [ "$ACTION" = ifupdate -a -n "$IFUPDATE_ADDRESSES" ] && [ -n "$MULTIPATH" ] && [ "$MULTIPATH" != "off" ]; then
|
||||
logger -t "mptcp" "New IP ($IFUPDATE_ADDRESSES) for $INTERFACE ($DEVICE)"
|
||||
multipath $DEVICE off >/dev/null 2>&1 || exit 0
|
||||
_tracker_down && exit 0
|
||||
multipath $DEVICE $MULTIPATH_MODE $MULTIPATH_ID >/dev/null 2>&1 || exit 0
|
||||
elif [ "$ACTION" = ifupdate ] && [ -n "$MULTIPATH" ] && [ "$MULTIPATH" != "off" ]; then
|
||||
logger -t "mptcp" "Update of $INTERFACE ($DEVICE)"
|
||||
multipath $DEVICE off >/dev/null 2>&1 || exit 0
|
||||
_tracker_down && exit 0
|
||||
multipath $DEVICE $MULTIPATH_MODE $MULTIPATH_ID >/dev/null 2>&1 || exit 0
|
||||
elif [ "$ACTION" = ifup -o "$ACTION" = iflink -o "$ACTION" = link-up ] && [ -z "$(echo $DEVICE | grep oip | grep gre)" ] && [ -n "$MULTIPATH" ] && [ "$MULTIPATH" != "off" ]; then
|
||||
logger -t "mptcp" "Reloading mptcp config due to $ACTION of $INTERFACE ($DEVICE)"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=phicomm-k3screenctrl
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/lwz322/k3screenctrl.git
|
||||
|
||||
@@ -15,5 +15,5 @@ start() {
|
||||
}
|
||||
|
||||
stop() {
|
||||
kill `pidof k3screenctrl | sed "s/$$//g"`
|
||||
}
|
||||
killall k3screenctrl
|
||||
}
|
||||
+1
-1
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=totd
|
||||
PKG_VERSION:=1.5.3
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_MAINTAINER:=Konstantine Shevlakov <shevlakov@132lan.ru>
|
||||
PKG_LICENSE:=LICENSE
|
||||
|
||||
@@ -55,7 +55,7 @@ start_service(){
|
||||
}
|
||||
|
||||
stop_service(){
|
||||
kill `pgrep -f $PROG` > /dev/null 2>&1
|
||||
killall $PROG > /dev/null 2>&1
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
|
||||
Reference in new issue
Block a user