View previous topic :: View next topic |
Author |
Message |
Pamino Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_tiny_tim.gif)
Joined: 07 Apr 2004 Posts: 281 Location: 127.0.0.1
|
Posted: Wed Sep 08, 2004 11:14 am Post subject: ptal-init |
|
|
Hallo,
ich habe den Multifunktiosdrucker PSC2175 von HP. Als Scannertreiber benutze ich HPOJ. Damit auch Xsane meinen Drucker erkennt muss ich vorher als root den Befehl ptal-init start ausführen. Auf dauer nervt das allerdings, deshalb habe ich mir überlegt einen script in /etc/init.d zu erstellen, allerdings weiß ich nicht wie ich das anfangen soll.... oder gibt es noch eine einfachere Möglichkeit ptal-init beim booten ausführen zu lassen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
himpierre l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Quake3/quake3_sarge.gif)
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Wed Sep 08, 2004 11:36 am Post subject: |
|
|
Gibt es das Initscript nicht schon? Was liegt denn so in /etc/init.d?
cheers
t. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Pamino Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_tiny_tim.gif)
Joined: 07 Apr 2004 Posts: 281 Location: 127.0.0.1
|
Posted: Wed Sep 08, 2004 12:11 pm Post subject: |
|
|
Da ist sicher kein script der was damit zu tun hat. 100%! Was sollte den da liegen? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
himpierre l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Quake3/quake3_sarge.gif)
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Wed Sep 08, 2004 12:29 pm Post subject: |
|
|
Dann kopier halt das ptal-init Dingens nach /etc/init.d. Ich glaube so habe ich es auch gemacht und dachte daher, es gäbe ein spezielles init script.
cheers
t. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Pamino Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_tiny_tim.gif)
Joined: 07 Apr 2004 Posts: 281 Location: 127.0.0.1
|
Posted: Wed Sep 08, 2004 1:03 pm Post subject: |
|
|
himpierre wrote: | Dann kopier halt das ptal-init Dingens nach /etc/init.d. Ich glaube so habe ich es auch gemacht und dachte daher, es gäbe ein spezielles init script.
cheers
t. | Glaub ich dir nicht Hab ich schon längst probiert und es geht nicht ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
himpierre l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Quake3/quake3_sarge.gif)
Joined: 31 Aug 2002 Posts: 867 Location: Berlin
|
Posted: Wed Sep 08, 2004 1:47 pm Post subject: |
|
|
...na dann versuchen wir es mit hpoj?
Code: |
root@irmeli ~ # /etc/init.d/hpoj start
* Starting hpoj... [ ok ]
root@irmeli ~ # /etc/init.d/hpoj stop
* Stopping hpoj... [ ok ]
root@irmeli ~ # cat /etc/init.d/hpoj
#!/sbin/runscript
depend() {
before cupsd
after hotplug
}
start() {
ebegin "Starting hpoj"
/usr/sbin/ptal-init start -q
eend $?
}
stop() {
ebegin "Stopping hpoj"
/usr/sbin/ptal-init stop -q
eend $?
}
|
cheers
t. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Pamino Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_tiny_tim.gif)
Joined: 07 Apr 2004 Posts: 281 Location: 127.0.0.1
|
Posted: Wed Sep 08, 2004 4:09 pm Post subject: |
|
|
?? Ich hatte hpoj script nicht.... habs neu emergt. Jetzt ist es da und funkt wunderbar ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|