port_management: configure only if the necessary tools exist

This commit is contained in:
Sukru Senli 2016-10-18 13:25:46 +02:00
parent cb36f99318
commit 325d978d02

View file

@ -130,7 +130,10 @@ set_port_pause() {
}
start_service() {
check_for_config
[ -f /sbin/db ] && check_for_config
[ -f /usr/sbin/ethswctl -a -f /usr/sbin/ethctl ] || return
config_load ports
config_foreach configure_ethports ethport
}