AirOS Cool Commands

AirOS is a custom Linux that is used on Ubiquiti equipment.  I have found some sweet commands that I didn’t want to forget.

To make a script or command persistent use the following:

/etc/persistent/rc.prestart
/etc/persistent/rc.poststart
/etc/persistent/rc.prestop
/etc/persistent/rc.poststop

Let me explain the execution of each of the scripts:

  • rc.prestart – This happens before the standard bootup items are running. Be careful when setting something here so that you have the proper prereq’s first.
  • rc.poststart – This happens after the standard bootup items.
  • rc.prestop – Before the shutdown command was executed.
  • rc.poststop – After the shutdown command and after the shutdown items.
  • Here is a cool command that is directly from Linux that is very useful:

    iwconfig
    

    This is like ifconfig but gives information directly about the wireless connection.

    More to come soon.

    Mike

    • JuanPalote
    • July 5th, 2011

    I have a few:

    iwconfig

    ifconfig

    wlanconfig ath0 list scan # to see AP via command line!

    ps -A

    iwlist

    nc

    tfp

  1. No trackbacks yet.