Advertisement
Guest User

Untitled

a guest
Jan 18th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. mkdir /etc/config/scripts
  2. vi /etc/config/scripts/wifi-signal
  3. -------
  4. #!/bin/sh
  5. /usr/bin/iwinfo wlan0 info | /bin/grep -i signal | /usr/bin/awk '{ print $2 }
  6. -------
  7. chmod 777 /etc/config/scripts/wifi-signal
  8. vi /etc/config/snmpd
  9. -------
  10. config 'exec'
  11.        option 'name' 'signaldb'
  12.        option 'prog' '/etc/config/scripts/wifi-signal'
  13.        option 'args' ''
  14.        option miboid 1.2.3.4
  15. -------
  16. /etc/init.d/snmpd restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement