I want to enable bluetooth device when system is up.
Which is the recommended way to do it?
The command is sudo hciconfig hci0 up
.
Should I put it in /etc/rc.local
? or should I use update-rc.d
?
If there is no "proper" way to do it, I'll choose the way with /etc/rc.local
.
Thanks.
Edit
Following @krt's answer I added @reboot cronjob, but hci0
are still down when rebooting. According to /var/log/syslog
the job is running correctly.
1136 May 24 11:17:20 klein /usr/sbin/cron[2107]: (CRON) INFO (pidfile fd = 3)
1137 May 24 11:17:20 klein /usr/sbin/cron[2108]: (CRON) STARTUP (fork ok)
1138 May 24 11:17:20 klein /usr/sbin/cron[2108]: (CRON) INFO (Running @reboot jobs)
dpkg -S /sbin/init
?