Author Topic: Startup Files ("boot.local" / "autoexec.bat")  (Read 2623 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Startup Files ("boot.local" / "autoexec.bat")
« on: July 18, 2005, 04:18:08 am »
Hello,

where can I put commands that should be executed on each reboot of the SL-C3000 with Cacko ROM?
On my Linux PC I used to put these commands into /etc/boot.local
but I cannot find such a file on the Zaurus.

Thanks

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Startup Files ("boot.local" / "autoexec.bat")
« Reply #1 on: July 18, 2005, 07:16:47 am »
Place a script in:

/etc/rcX.d/ where X is the runlevel you want it to run at.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Startup Files ("boot.local" / "autoexec.bat")
« Reply #2 on: July 18, 2005, 10:38:55 am »
Quote
Place a script in:

/etc/rcX.d/ where X is the runlevel you want it to run at.


Si
[div align=\"right\"][a href=\"index.php?act=findpost&pid=88684\"][{POST_SNAPBACK}][/a][/div]

Thanks!
I solved the issue slightly differently:

I took the script /etc/rc.d/rc.local (which seems not to be used at all in the Cacko 1.23beta1 ROM setup) and linked it into all the rcX.d subdirectories as "S99rclocal", so I now have a central place to put commands into for system reboot, regardless of the runlevel to be entered.

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Startup Files ("boot.local" / "autoexec.bat")
« Reply #3 on: July 27, 2005, 03:07:47 am »
explain step for step, and why, please, I am a n00b.

Thanks
Bam
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Startup Files ("boot.local" / "autoexec.bat")
« Reply #4 on: July 27, 2005, 06:48:46 am »
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Startup Files ("boot.local" / "autoexec.bat")
« Reply #5 on: July 27, 2005, 03:59:39 pm »
thanks
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder