hostapd: several fixes for init script
hostapd: several fixes for init script

Issue: LIN7-1653

* restart: The stop may delay a few seconds according to different wireless
  devices, on debian/ubuntu, the init script directly sleep 8 seconds
  to wait the stop complete, here we add a delay function (sleep in a loop)
  to ensure the stop is completed before start.
* add status command.
* add --oknodo for stop so it will not break restart if there is no
  running process.

(LOCAL REV: NOT UPSTREAM) -- Sent to meta-oe on 20141114

Signed-off-by: Jackie Huang <49ec7cfe045884df7178a7e982697c7043dbc82b@windriver.com>

WindRiver-OpenSourceLabs/meta-oe-subset,WindRiver-OpenSourceLabs/meta-oe-subset