I'm running Raspbian Wheezy, on a freshly installed SD card:
pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux
I wanted to make my Raspberry Pi a Wifi access point, so I followed the instructions in this tutorial.
All was good until I got to the "Finishing up..." section. It says to avoid having to start hostapd and dhcp each time I boot the pi, I should run these commands:
sudo update-rc.d hostapd enable
sudo update-rc.d isc-dhcp-server enable
When I run them, I get this:
pi@raspberrypi ~ $ sudo update-rc.d hostapd enable
update-rc.d: using dependency based boot sequencing
update-rc.d: error: no runlevel symlinks to modify, aborting!
pi@raspberrypi ~ $ sudo update-rc.d isc-dhcp-server enable
update-rc.d: using dependency based boot sequencing
pi@raspberrypi ~ $
So, the second command (for isc-dhcp-server) was successful, but the first command (for hostapd) was not. I have no idea what it's talking about, and don't know what to do next.
I had followed the instructions on the above-mentioned site exactly, including his instructions for building hostapd from source:
wget https://github.com/jenssegers/RTL8188-hostapd/archive/v1.1.tar.gz
tar -zxvf v1.1.tar.gz
cd RTL8188-hostapd-1.1/hostapd
sudo make
sudo make install
(So, I'm wondering if that's why isc-dhcp-server succeeded, and hostapd failed; because I installed isc-dhcp-server from apt and hostapd from source.)
I searched for the error message no runlevel symlinks to modify, aborting!
and found this page. It seemed fairly specific to bluetooth, though, and I wasn't sure how to apply it to my situation with hostapd. The main thing I gleaned from that page was the tone of "If you removed the symlinks in rc?.d manually, you will have to recreate them manually," and "What went wrong is that you were doing things in there without a sufficient understanding of what should be done."
Well, I most definitely didn't remove any symlinks manually. And although the esoteric details of runlevels is definitely above my head, I haven't messed with anything except exactly what the tutorial told me to do.
Any thoughts on how I can fix this problem?
update-rc.d
script does? Many people are a little hesitant to try out new commands that they don't know, especially when invoked as root usingsudo
. – Phil B. Oct 18 '15 at 15:08enable
, I needed to run that in addition todefaults
. – sebastian Oct 06 '19 at 08:18