2019-07-26 16:31:56 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-01-24 20:50:29 -06:00
|
|
|
# toggle the mux to auto if dualtor
|
|
|
|
if [[ "$(sonic-cfggen -d -v DEVICE_METADATA.localhost.subtype | tr [:upper:] [:lower:])" == *"dualtor"* ]];
|
|
|
|
then
|
|
|
|
logger -t TSB -p user.info "Toggle all mux mode to auto"
|
|
|
|
sudo config mux mode auto all
|
|
|
|
fi
|
|
|
|
|
2021-02-12 12:56:44 -06:00
|
|
|
/usr/bin/TS TSB
|