Author Topic: Sbin Directory For Init Scripts  (Read 2312 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Sbin Directory For Init Scripts
« on: May 12, 2006, 01:35:20 pm »
Hello,

I'm trying to create an init script which enables my swapfile at startup.
It is on Cacko 1.23 (SL-C3100).
script /etc/rc.d/init.d/swap,
linked in to rc3.d, rc4.d and rc5.d as S99swap.

contains (besides others) the line
swapon /hdd3/.swapfile


but on startup, I see the message flashing by that "swapon" cannot be found.
Even if I change this to

/sbin/swapon /hdd3/.swapfile

it still says that swapon is not available.
How can I know how this binary is available at the time when the init scripts are executed? OR does someone know already?


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

sidmoraes

  • Full Member
  • ***
  • Posts: 116
    • View Profile
    • http://
Sbin Directory For Init Scripts
« Reply #1 on: May 13, 2006, 11:34:04 am »
Quote
Hello,

I'm trying to create an init script which enables my swapfile at startup.
It is on Cacko 1.23 (SL-C3100).
script /etc/rc.d/init.d/swap,
linked in to rc3.d, rc4.d and rc5.d as S99swap.

contains (besides others) the line
swapon /hdd3/.swapfile


but on startup, I see the message flashing by that "swapon" cannot be found.
Even if I change this to

/sbin/swapon /hdd3/.swapfile

it still says that swapon is not available.
How can I know how this binary is available at the time when the init scripts are executed? OR does someone know already?


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

I included these things in "/opt/QtPalmtop/qpe.sh"
SL-C1000 ( Cacko-Rom 1.23 ) + SL-C3100 ( Cacko-Rom 1.23 )
2Gb SD, usb host cable made by myself, CF modem Xircom,
CF wifi Zonet, Hawking CF 10/100 ethernet,
 USB net, USB CD-Writer Sony CRX10U, CF to PCMCIA adapter,
PCMCIA 2G disk Toshiba, USB charger self-made,
USB BLuetooth,
RH2 ( Wired control for Z ) made by myself,
Serial cable, also made ...

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Sbin Directory For Init Scripts
« Reply #2 on: May 14, 2006, 07:52:22 am »
Quote
I included these things in "/opt/QtPalmtop/qpe.sh"
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126904\"][{POST_SNAPBACK}][/a][/div]

I looked at that file and I am not sure why there is a "while true" loop in there
So I don't know where to put the commands: before the loop, into the loop or behind the loop.
Could you please give some advice?

Thanks!
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
Sbin Directory For Init Scripts
« Reply #3 on: May 14, 2006, 10:45:28 am »
goto the script for mounting your hdd's and add a swapon /you/path to the bottom of the script. I believe the script responsible for mounting your hdd's is /sbin/hddmount

I have more info at my site on this, currently I am running a 128mb swap partition. /dev/hdx4
« Last Edit: May 14, 2006, 10:46:54 am by bam »
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder