You are not logged in.
Pages: 1
#!/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
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.
Offline
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
Does /etc/rc.local have execution permissions set? If so, can you post the contents of your /etc/inittab?
Offline
I think echo should write to tty1, not the log. Try
echo "rc.local was here" >/tmp/testI 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
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
Pages: 1