Author Topic: How to get the /etc/rc.d/rc.local script to run at boot?  (Read 3693 times)

bb

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
How to get the /etc/rc.d/rc.local script to run at boot?
« on: January 31, 2004, 08:30:10 am »
I seem to have a problem getting the /etc/rc.d/rc.local script to run at boot of my SL-C860.

I have removed the outcommenting of the lines for the rc.local script in /etc/rc.d/rc.sysinit, but that didn\'t seem to do it. What else needs to be done?

Best regards,
bb
Best regards,
bb
SL-C860, Cacko 1.23 ROM
512MB SanDisk SD, Origo CF WiFi

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
How to get the /etc/rc.d/rc.local script to run at boot?
« Reply #1 on: February 06, 2004, 12:31:29 am »
Posted this over on another thread where you asked the same question - not sure if you\'ve read it.

Quote
Yeah, it took me a while to find, but you need to edit /root/etc/rc.d/rc.sysinit, it\'s an exact copy of the rc.sysinint in /etc/rc.d but it seems that the one in /etc/rc.d isn\'t run for some reason.

About 3/4 of the way down there is a commented section dealing with running /etc/rc.d/rc.local, uncomment this section and /etc/rc.d/rc.local will be run at boot time.

hope this get things working for you

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

bb

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
How to get the /etc/rc.d/rc.local script to run at boot?
« Reply #2 on: February 06, 2004, 12:37:31 pm »
Quote
Posted this over on another thread where you asked the same question - not sure if you\'ve read it.
Stu

I didn\'t - thanks. I seem to be unable to edit /root/etc/rc.d/rc.sysinit though. When I have edited it and try saving, I get a message telling me: \"Unable to create file rc.sysinit\". Of course I run as root, and it happens no matter where I stand: in the /root/etc/rc.d directory or in root\'s $HOME.
I have tried this with both the editor in mc and the ee editor.
Best regards,
bb
SL-C860, Cacko 1.23 ROM
512MB SanDisk SD, Origo CF WiFi

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
How to get the /etc/rc.d/rc.local script to run at boot?
« Reply #3 on: February 06, 2004, 04:58:58 pm »
Ahh, sorry, I missed one important step - remount / rw!

mount -o rw,remount /

must be issued as root!

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

bb

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://
How to get the /etc/rc.d/rc.local script to run at boot?
« Reply #4 on: February 08, 2004, 11:37:53 am »
Quote
Ahh, sorry, I missed one important step - remount / rw!
Stu

Should have figured that one myself. Thanks, I\'ll try it when I am over another issue I have now.
Best regards,
bb
SL-C860, Cacko 1.23 ROM
512MB SanDisk SD, Origo CF WiFi