I’m trying to figure out how to check the ntp package is both installed AND enabled from within a script.
Checking that the package is on the router seems easy.
But how do you get the flags for a package, (X being disabled)?
I’m trying to figure out how to check the ntp package is both installed AND enabled from within a script.
Checking that the package is on the router seems easy.
But how do you get the flags for a package, (X being disabled)?
:if ( [ :len [ /system package find where name="ntp" and disabled=no ] ] > 0 ) do={
/log info "ntp enabled"
}
Thank you Nescafe!