mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 04:37:52 +08:00
🐶 Sync 2026-04-24 20:24:11
This commit is contained in:
1 parent
5a7f5b4f3b
commit
b043ff192c
20 files changed
+7141
-3650
No files matched your search
+1
-1
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=watchcat
|
||||
PKG_VERSION:=1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
#
|
||||
|
||||
. /lib/network/config.sh
|
||||
|
||||
get_ping_size() {
|
||||
ps=$1
|
||||
case "$ps" in
|
||||
@@ -82,9 +84,10 @@ watchcat_restart_modemmanager_iface() {
|
||||
}
|
||||
|
||||
watchcat_restart_network_iface() {
|
||||
logger -p daemon.info -t "watchcat[$$]" "Restarting network interface: \"$1\"."
|
||||
ip link set "$1" down
|
||||
ip link set "$1" up
|
||||
local network
|
||||
network="$(find_config "$1")"
|
||||
logger -p daemon.info -t "watchcat[$$]" "Restarting network interface: \"$1\" (network: \"$network\")."
|
||||
ifup "$network"
|
||||
}
|
||||
|
||||
watchcat_run_script() {
|
||||
|
||||
Reference in new issue
Block a user