netifd: add two simple scripts for querying interface/device status