You are not logged in.

#1 2012-04-23 18:27:20

tioover
Member
From: china
Registered: 2012-04-23
Posts: 3
Website

[SOLVED] rc.loacl can't run

#!/bin/bash
# /etc/rc.local: Local multi-user startup script.

echo "-----------"
echo " "
echo "test"
echo "-----------"

Last edited by tioover (2012-04-23 20:06:10)

Offline

#2 2012-04-23 18:31:41

sealclubber
Member
Registered: 2012-04-16
Posts: 34

Re: [SOLVED] rc.loacl can't run

So um....

What exactly are you trying to do here. We need more information than that.


When I  win the lottery, the first thing I will do, before I buy a new car or a house, would be to buy a goddamn Cisco XR 12000 router and enough T3 lines to wire a country.

http://myanimelist.net/profile/sealclubber

Offline

#3 2012-04-23 19:25:39

tioover
Member
From: china
Registered: 2012-04-23
Posts: 3
Website

Re: [SOLVED] rc.loacl can't run

sorry, my english is not good.

i wirte to `rc.local` some code, all not run.

for example i wirte ` mkdir /root/test` , after reboot, not found test folder in /root

wirte `echo`, but not found the massage in the log.

Offline

#4 2012-04-23 19:51:42

Atragor
Member
Registered: 2009-02-28
Posts: 59

Re: [SOLVED] rc.loacl can't run

Does /etc/rc.local have execution permissions set? If so, can you post the contents of your /etc/inittab?

Offline

#5 2012-04-23 19:51:53

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [SOLVED] rc.loacl can't run

I think echo should write to tty1, not the log.  Try

echo "rc.local was here" >/tmp/test

I don't know why "mkdir /root/test" didn't work, though.  It worked for me.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#6 2012-04-23 20:00:56

tioover
Member
From: china
Registered: 2012-04-23
Posts: 3
Website

Re: [SOLVED] rc.loacl can't run

Atragor wrote:

Does /etc/rc.local have execution permissions set? If so, can you post the contents of your /etc/inittab?

Thanks

I try it.
--------------------
It's OK! thank you!

Last edited by tioover (2012-04-23 20:05:43)

Offline

Board footer

Powered by FluxBB