Author Topic: Run A Script At Startup(boot)  (Read 2534 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Run A Script At Startup(boot)
« on: July 26, 2005, 03:37:01 pm »
where could I do this? Basically want to turn the swapfile on, and maybe a few "other" things. I was thinking qpe.sh, but not sure....
« Last Edit: July 26, 2005, 03:37:34 pm by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Run A Script At Startup(boot)
« Reply #1 on: July 26, 2005, 09:41:10 pm »
You can use rc.local, but you'll have to uncomment the call to rc.local in one of the other rc scripts (sorry can't remember which one ).

It's in /etc/rc.d/init.d

If you want to start a swap file at boot then just put it in your /etc/fstab and the kernel will take care of loading it at boot time.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Run A Script At Startup(boot)
« Reply #2 on: July 26, 2005, 10:09:08 pm »
what would be the line of script to add to fstab?
just /drive/swapfile? or
swapon /drive/swapfile ?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Run A Script At Startup(boot)
« Reply #3 on: July 27, 2005, 04:27:27 am »
found something that works well
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Run A Script At Startup(boot)
« Reply #4 on: July 27, 2005, 11:51:28 am »
Quote
what would be the line of script to add to fstab?
just /drive/swapfile? or
swapon /drive/swapfile ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=89690\"][{POST_SNAPBACK}][/a][/div]

something like

Code: [Select]
/mnt/card/swapfile      none        swap        swap      0 0
Warning AIRCODE - I haven't tried this

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Run A Script At Startup(boot)
« Reply #5 on: July 27, 2005, 03:24:20 pm »
hmmm will try just for the sake of knowledge
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder