mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-04 00:14:55 +01:00
iup: increase debug level for Reboot message
This commit is contained in:
parent
af850eb63c
commit
bdc0652e71
1 changed files with 9 additions and 2 deletions
|
|
@ -39,6 +39,13 @@ v() {
|
|||
[ "$VERBOSE" -eq 3 ] && logger -s -t $0[$$] "$@" 2>&1 | tee /dev/console && return
|
||||
}
|
||||
|
||||
vv() {
|
||||
VERBOSE="$(($VERBOSE + 1))"
|
||||
v "$@"
|
||||
VERBOSE="$(($VERBOSE - 1))"
|
||||
|
||||
}
|
||||
|
||||
get_packages()
|
||||
{
|
||||
local pack
|
||||
|
|
@ -363,7 +370,7 @@ change_to_vlan() {
|
|||
v "option 132: committed update to file network: ifname=${new_wan_if}"
|
||||
|
||||
# reboot into new if configuration.
|
||||
v "Rebooting"
|
||||
vv "Rebooting"
|
||||
export REBOOT_REASON=iup
|
||||
/sbin/reboot
|
||||
}
|
||||
|
|
@ -627,7 +634,7 @@ main()
|
|||
fi
|
||||
|
||||
if [ "$reboot" == "on" ]; then
|
||||
v "Rebooting"
|
||||
vv "Rebooting"
|
||||
export REBOOT_REASON=iup
|
||||
/sbin/reboot
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue