%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj <
| Server IP : 212.252.79.165 / Your IP : 216.73.216.226 [ Web Server : Apache System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64 User : cehaburo ( 1001) PHP Version : 8.1.33 Disable Function : exec,passthru,shell_exec,system Domains : 48 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/ubuntu-fan/ |
Upload File : |
#!/bin/sh -
#
# All interfaces managed by ifupdown get their Fan bridges configured by
# the ifupdown hook, so here we only care about interfaces controlled by
# systemd-networkd (FIXME: Networkmanager?)
#
networkd_interfaces() {
if [ "$(type networkctl 2>&1|grep 'not found')" != "" ]; then
return
fi
networkctl 2>/dev/null |
awk '$4=="routable" && $5=="configured"{print $2}'
}
networkd_cmd() {
local CMD="$1"
local IFACE
for IFACE in $(networkd_interfaces); do
fanctl net $CMD $IFACE
done
}
# See how we were called.
case "$1" in
start)
networkd_cmd start
;;
stop)
networkd_cmd stop
;;
restart|reload|force-reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload}"
exit 2
esac
exit $?