pic, kdyz chci, aby se mi spustil nejakej skript pri startu, a usoudil jsem, ze ho nacpu do /etc/init.d a v /etc/rc3.d na nej dam symlinkovej odkaz, tak je to spravne? nebo v init.d muzou bejt jenom demonu a v runlevelovejch adresarich mam symlinkovat na skript nekde jinde, kdyz je to jenom par prikazu pro rucni nahozeni wifi? jsem si totiz v dobry vire udelal skript na nahozeni wifi a dal ho do init.d a v runlevelu 3 s SXX cislem dostatecne pozde udelal symlink, a ac dost prapodivne, nak se mi ta wifi nakonec nahodi. akorat jsem si ted chtel presmerovat provoz z wifiny na eth0 a fungovat jako router, postupoval jsem ted podle nejakyho navodu a dostal jsem se prave do bodu, kdy jsem musel udelat 'update-rc.d setuprouty defaults' (setuprouty je nejakej skript z navodu na prohozeni routovani) a ponekud se to zblaznilo, ze ten muj skript na wifinu nedodrzuje LSB standarty pro demony. vubec nevim, kde to k tomu scriptu prislo :
(tohle jsou setuprouty)
#!/bin/sh
#/etc/init.d/setuproutes
#
### BEGIN INIT INFO
# Provides: default routes for wlan0
# Required-Start: $syslog $network
# Required-Stop: $syslog
# Should-Start:
# Should-Stop:
# X-Start-Before:
# X-Stop-After:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: adjust default routes
# Description: removes default route 192.168.2.1 adds default route 192.168.1.1
### END INIT INFO
sudo route del default gw 192.168.9.1 eth0
sudo route add default gw 192.168.8.1 wlan0
no a takhle se to na me vydesilo po zadani commandu. kam mam teda davat spousteci skripty, pro ktery potrebuju roota a nahozeny nektery veci, takze nemuzu pouzit crone ?
update-rc.d setuprouty defaults
insserv: warning: script 'S06wf_nahod_sklivec' missing LSB tags and overrides
insserv: warning: script 'wf_nahod_nusru' missing LSB tags and overrides
insserv: warning: script 'wf_nahod_sklivec' missing LSB tags and overrides
insserv: There is a loop between service rmnologin and mountnfs if started
insserv: loop involving service mountnfs at depth 8
insserv: loop involving service networking at depth 7
insserv: There is a loop between service rmnologin and mountnfs if started
insserv: There is a loop between service rmnologin and mountnfs-bootclean if started
insserv: loop involving service mountnfs-bootclean at depth 11
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting wf_nahod_sklivec depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: loop involving service saned at depth 2
insserv: There is a loop between service rmnologin and mountkernfs if started
insserv: loop involving service mountkernfs at depth 1
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
root@kali:/etc/init.d# ^C
root@kali:/etc/init.d# ^C
root@kali:/etc/init.d# missing LSB tags and overrides
wf_nahod_sklivec a wf_nahod_nusru jsou moje skripty, nusra ani nema symlink, tu mam do zasoby na jinou wifi sit, a rmnlogin je v runlevelu 3 s cislem S04, wf_nahod_sklivec je tamtez s cislem S06. S04rmnlogin vubec netusim k cemu je a proc by na nem mel zaviset muj sklivec. jo a jaktoze maji nektery symlinky stejny poradovy S cislo? pod S04 je jich tam par, pod S03 asi pet atd ..?
dekuji predem za rady lame, po letech utecivsi z widli