forked from fabianishere/udm-iptv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
udm-iptv-diag
executable file
·40 lines (34 loc) · 1.19 KB
/
udm-iptv-diag
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# Script for diagnosing issues with udm-iptv.
#
# Copyright (C) 2021 Fabian Mastenbroek.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# Load configuration
. /etc/udm-iptv.conf
# Use busybox if iproute2 is not installed
if ! command -v ip > /dev/null 2>&1; then
alias ip="busybox ip"
fi
if [ "$IPTV_WAN_VLAN" -ne 0 ]; then
target="$IPTV_WAN_VLAN_INTERFACE"
else
target="$IPTV_WAN_INTERFACE"
fi
echo "Please share the following output with the developers:"
echo "=== Configuration ==="
echo "WAN Interface: $IPTV_WAN_INTERFACE"
echo "WAN Ranges: $IPTV_WAN_RANGES"
echo "WAN VLAN: $IPTV_WAN_VLAN (dev $IPTV_WAN_VLAN_INTERFACE)"
echo "WAN DHCP options: $IPTV_WAN_DHCP_OPTIONS"
echo "LAN Interfaces: $IPTV_LAN_INTERFACES"
echo "IGMP Proxy quickleave disabled: $IPTV_IGMPPROXY_DISABLE_QUICKLEAVE"
echo "IGMP Proxy debug: $IPTV_IGMPPROXY_DEBUG"
echo "=== IP Link and Route ==="
ip -4 addr show dev "$target"
ip route show dev "$target"
echo "=== Service Logs ==="
journalctl -u udm-iptv | tail