Skip to content

Commit 200b6d4

Browse files
committed
show distro and kernel
1 parent 2ea1dfd commit 200b6d4

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

lnxrouter

+15-8
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ decide_ip_addresses() {
16151615

16161616
prepare_wifi_interface() {
16171617

1618-
sleep 6
1618+
sleep 1
16191619
echo; echo; echo;
16201620
echo "Trying to set power_save off ..."
16211621
if [[ $USE_IWCONFIG -eq 0 ]]; then
@@ -1982,6 +1982,13 @@ init_trap
19821982

19831983
init_conf_dirs # CONFDIR , COMMON_CONFDIR . make dir
19841984

1985+
echo -e "\nDistro:"
1986+
cat /etc/os-release
1987+
1988+
echo -e "\nKernel:"
1989+
uname -a
1990+
echo
1991+
19851992
echo "setting NM log level: nmcli general logging level TRACE domains ALL"
19861993
nmcli general logging level TRACE domains ALL
19871994

@@ -2021,7 +2028,7 @@ fi
20212028
#===================================================
20222029
#===================================================
20232030

2024-
sleep 6
2031+
sleep 1
20252032
echo; echo; echo;
20262033
ip addr show dev ${SUBNET_IFACE}
20272034
echo "Trying to set NM unmanage ..."
@@ -2034,40 +2041,40 @@ fi
20342041
#===========================
20352042

20362043

2037-
sleep 6
2044+
sleep 1
20382045
echo; echo; echo;
20392046
ip addr show dev ${SUBNET_IFACE}
20402047
echo "Trying to set ${SUBNET_IFACE} down ..."
20412048
# initialize subnet interface
20422049
# take subnet interface down first
20432050
ip link set down dev ${SUBNET_IFACE} || die "Failed setting ${SUBNET_IFACE} down"
20442051

2045-
sleep 6
2052+
sleep 1
20462053
echo; echo; echo;
20472054
ip addr show dev ${SUBNET_IFACE}
20482055
echo "Trying to flush ${SUBNET_IFACE} ..."
20492056
# flush old IPs of subnet interface
20502057
ip addr flush ${SUBNET_IFACE} || die "Failed flush ${SUBNET_IFACE} IP"
20512058

2052-
sleep 6
2059+
sleep 1
20532060
echo; echo; echo;
20542061
ip addr show dev ${SUBNET_IFACE}
20552062
dealwith_mac # setting MAC should be after setting NM unmanaged
20562063

2057-
sleep 6
2064+
sleep 1
20582065
echo; echo; echo;
20592066
ip addr show dev ${SUBNET_IFACE}
20602067
echo "Trying to check and do rfkill unblock ..."
20612068
[[ $WIFI_IFACE ]] && check_rfkill_unblock_wifi
20622069

2063-
sleep 6
2070+
sleep 1
20642071
echo; echo; echo;
20652072
ip addr show dev ${SUBNET_IFACE}
20662073
echo "Trying to bring interface ${SUBNET_IFACE} up ..."
20672074
# bring subnet interface up
20682075
ip link set up dev ${SUBNET_IFACE} || die "Failed bringing ${SUBNET_IFACE} up"
20692076

2070-
sleep 6
2077+
sleep 1
20712078
echo; echo; echo;
20722079
echo "Finished test. Exiting ..."
20732080
clean_exit

0 commit comments

Comments
 (0)