mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
port_management: configure only if the necessary tools exist
This commit is contained in:
parent
cb36f99318
commit
325d978d02
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue