mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
vertical spacing of diags fixed in iiab-network.log & live output
This commit is contained in:
parent
896cb06940
commit
d7cd912d87
1 changed files with 6 additions and 4 deletions
10
iiab-network
10
iiab-network
|
@ -49,25 +49,27 @@ fi
|
||||||
#if [[ `type -P nmcli` ]]; then # "type -P" isn't POSIX compliant; it misses built-in commands like "cd"
|
#if [[ `type -P nmcli` ]]; then # "type -P" isn't POSIX compliant; it misses built-in commands like "cd"
|
||||||
if [[ `command -v nmcli` ]]; then # "command -v" is POSIX compliant; it catches built-in commands like "cd"
|
if [[ `command -v nmcli` ]]; then # "command -v" is POSIX compliant; it catches built-in commands like "cd"
|
||||||
nmcli d >> iiab-network.log
|
nmcli d >> iiab-network.log
|
||||||
|
echo >> iiab-network.log
|
||||||
nmcli c >> iiab-network.log
|
nmcli c >> iiab-network.log
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "" >> iiab-network.log
|
|
||||||
ip r >> iiab-network.log
|
ip r >> iiab-network.log
|
||||||
echo "" >> iiab-network.log
|
|
||||||
brctl show >> iiab-network.log
|
brctl show >> iiab-network.log
|
||||||
|
echo >> iiab-network.log
|
||||||
echo "run start: $Start" >> iiab-network.log
|
echo "run start: $Start" >> iiab-network.log
|
||||||
echo "run end: $End" >> iiab-network.log
|
echo "run end: $End" >> iiab-network.log
|
||||||
echo "" >> iiab-network.log
|
echo >> iiab-network.log
|
||||||
echo "" >> iiab-network.log
|
echo >> iiab-network.log
|
||||||
|
|
||||||
|
|
||||||
# Put the same diagnostics on screen, for live operator
|
# Put the same diagnostics on screen, for live operator
|
||||||
if [[ `command -v nmcli` ]]; then
|
if [[ `command -v nmcli` ]]; then
|
||||||
nmcli d
|
nmcli d
|
||||||
|
echo
|
||||||
nmcli c
|
nmcli c
|
||||||
fi
|
fi
|
||||||
ip r
|
ip r
|
||||||
brctl show
|
brctl show
|
||||||
|
echo
|
||||||
echo "run start: $Start"
|
echo "run start: $Start"
|
||||||
echo "run end: $End"
|
echo "run end: $End"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue