OESF Portables Forum

General Forums => General Discussion => Topic started by: bam on July 26, 2005, 03:37:01 pm

Title: Run A Script At Startup(boot)
Post by: bam 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....
Title: Run A Script At Startup(boot)
Post by: Stubear 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
Title: Run A Script At Startup(boot)
Post by: bam 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 ?
Title: Run A Script At Startup(boot)
Post by: bam on July 27, 2005, 04:27:27 am
found something that works well
Title: Run A Script At Startup(boot)
Post by: Stubear 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
Title: Run A Script At Startup(boot)
Post by: bam on July 27, 2005, 03:24:20 pm
hmmm will try just for the sake of knowledge