Hostapd autostart

hostapd를 설치하여 사용중인데
컴퓨터를 재부팅할때마다 터미널에 들어가서

sudo ap-hotspot start

를 쳐주어야 시작되네요~

혹시 부팅과 함께 자동으로 실행되게 할 수 있나요??

sudo update-rc.d hostapd enable

[quote="yemharc":grpk9n2u]sudo update-rc.d hostapd enable[/quote:grpk9n2u]

update-re.d : command not found라고 뜹니다!! ㅠㅠ

[quote="mirunamuz":32u18vbq][quote="yemharc":32u18vbq]sudo update-rc.d hostapd enable[/quote:32u18vbq]

update-re.d : command not found라고 뜹니다!! ㅠㅠ[/quote:32u18vbq]

re가 아니라 rc입니다.

[quote="yemharc":3uqsgoz2][quote="mirunamuz":3uqsgoz2][quote="yemharc":3uqsgoz2]sudo update-rc.d hostapd enable[/quote:3uqsgoz2]

update-re.d : command not found라고 뜹니다!! ㅠㅠ[/quote:3uqsgoz2]

re가 아니라 rc입니다.[/quote:3uqsgoz2]

아 감사합니다!!

그런데 터미널에서 입력하니

update-rc.d: warning: start runlevel arguments (none) do not match hostapd Default-Start values (2 3 4 5)
update-rc.d: warning: stop runlevel arguments (none) do not match hostapd Default-Stop values (0 1 6)
Enabling system startup links for /etc/init.d/hostapd …
Removing any system startup links for /etc/init.d/hostapd …
/etc/rc0.d/K20hostapd
/etc/rc1.d/K20hostapd
/etc/rc2.d/S20hostapd
/etc/rc3.d/S20hostapd
/etc/rc4.d/S20hostapd
/etc/rc5.d/S20hostapd
/etc/rc6.d/K20hostapd
Adding system startup for /etc/init.d/hostapd …
/etc/rc0.d/K20hostapd -> …/init.d/hostapd
/etc/rc1.d/K20hostapd -> …/init.d/hostapd
/etc/rc6.d/K20hostapd -> …/init.d/hostapd
/etc/rc2.d/S20hostapd -> …/init.d/hostapd
/etc/rc3.d/S20hostapd -> …/init.d/hostapd
/etc/rc4.d/S20hostapd -> …/init.d/hostapd
/etc/rc5.d/S20hostapd -> …/init.d/hostapd

이런 메세지가 뜨면서 자동시작 되지 않네요 ㅠ 해결책 있을까요?

update-rc.d로 등록했는데도 안된다면 /etc/default/hostapd 파일이 있는지 확인하시고
파일이 있다면 내용 중에 RUN_DAEMON= 이란 부분에 YES를 적어주세요

RUN_DAEMON="YES"

계속 답변 달아주셔서 감사합니다!!

말씀하신 파일 들어가보니 그런 구문은 없고

Defaults for hostapd initscript

See /usr/share/doc/hostapd/README.Debian for information about alternative

methods of managing hostapd.

Uncomment and set DAEMON_CONF to the absolute path of a hostapd configuration

file and hostapd will be started during system boot. An example configuration

file can be found at /usr/share/doc/hostapd/examples/hostapd.conf.gz

DAEMON_CONF=""

Additional daemon options to be appended to hostapd command:-

-d show more debug messages (-dd for even more)

-K include key data in debug messages

-t include timestamps in some debug messages

Note that -B (daemon mode) and -P (pidfile) options are automatically

configured by the init.d script and must not be added to DAEMON_OPTS.

#DAEMON_OPTS=""

이런 구문들만 있네요 daemon_conf에 hospadp.conf.gz파일 경로를 설정하면 될 거 같아서 그런 파일이 있나 찾아봤더니
위의 설명처럼 usr/share/doc/hostapd/examples/hostapd.conf.gz 이것만 존재하고 그래서 한번 이 경로를 넣어봤는데도 자동시작이 되지 않네요 ㅠㅠ

그냥 RUN_DAEMON="YES" 구문을 복사해서 넣어봐도 실패했습니다.
다른 방법 있을까요?^^;

이쯤해도 안되면 뭔가 설정이 어긋났다고 생각되네요
일단 아래 링크 참고해서 세팅 점검해 보시고

http://askubuntu.com/questions/302380/hostapd-wifi-ap

ics-dhcp-server 패키지도 필요하실 겁니다.

답변 정말 감사합니다!! ^^