Guest User

Untitled

a guest
Dec 12th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. pi@raspberrypi ~ $ uname -a
  2. Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
  3.  
  4. sudo update-rc.d hostapd enable
  5. sudo update-rc.d isc-dhcp-server enable
  6.  
  7. pi@raspberrypi ~ $ sudo update-rc.d hostapd enable
  8. update-rc.d: using dependency based boot sequencing
  9. update-rc.d: error: no runlevel symlinks to modify, aborting!
  10. pi@raspberrypi ~ $ sudo update-rc.d isc-dhcp-server enable
  11. update-rc.d: using dependency based boot sequencing
  12. pi@raspberrypi ~ $
  13.  
  14. wget https://github.com/jenssegers/RTL8188-hostapd/archive/v1.1.tar.gz
  15. tar -zxvf v1.1.tar.gz
  16. cd RTL8188-hostapd-1.1/hostapd
  17. sudo make
  18. sudo make install
  19.  
  20. sudo update-rc.d hostapd defaults
  21.  
  22. #!/bin/sh
  23.  
  24. ### BEGIN INIT INFO
  25. # Provides: hostapd
  26. # Required-Start:
  27. # Required-Stop:
  28. # Should-Start:
  29. # Default-Start: 2 3 4 5
  30. # Default-Stop:
  31. # Short-Description: Hostapd Service
  32. # Description: Intended to start hostapd on system startup.
  33. ### END INIT INFO
  34.  
  35. set -e
  36.  
  37. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  38.  
  39. case "$1" in
  40. start)
  41. /usr/sbin/hostapd -B
  42. ;;
  43. *)
  44. echo "Usage: $NAME {start}" >&2
  45. exit 3
  46. ;;
  47. esac
Add Comment
Please, Sign In to add comment