Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
de:koarrl_zte [2013/02/03 18:53] koarrl |
de:koarrl_zte [2013/02/04 08:17] (aktuell) koarrl |
||
---|---|---|---|
Zeile 235: | Zeile 235: | ||
Even worse... if you immediately invoke some adb commandline as non-root, adb starts the said daemon automatically before noticing it hasn't enough rights! | Even worse... if you immediately invoke some adb commandline as non-root, adb starts the said daemon automatically before noticing it hasn't enough rights! | ||
- | You could even write an init script for this purpose. The adb binary should be put in a place like /usr/local/bin before. \\ | + | You can write your own init script for this purpose. The adb binary should be put in a place like /usr/local/bin before. \\ |
Like this quick & dirty example of /etc/init.d/adb: {{:de:adb_initscript.tgz|}} | Like this quick & dirty example of /etc/init.d/adb: {{:de:adb_initscript.tgz|}} | ||
- | For installing initscripts under Debian Squeeze make sure to have read before ... | + | |
+ | CAUTION: for installing lsb-style initscripts under Debian Squeeze read this before: http://wiki.debian.org/LSBInitScripts | ||
+ | There must be a comment header in each script decribing dependencies etc. The insserv tool will then define the appropriate start and kill links in the /etc/rcx.d dirs. | ||
+ | |||
+ | Quick lesson: | ||
man insserv | man insserv | ||
- | Then for dry run & seeing what would happen ... | + | For dry run & seeing what would happen ... |
/etc/init.d# insserv -vn ./adb | /etc/init.d# insserv -vn ./adb |