Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in the /etc/init.d/rcS script #38

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments
Open

error in the /etc/init.d/rcS script #38

GoogleCodeExporter opened this issue Mar 13, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. kernel flag atv-boot=patchstick
2.
3.

What is the expected output? What do you see instead?
/etc/init.d/rcS: line 75: [sdb1/patchstick.sh: not found

What version of the product are you using? On what operating system?
recovery-0.6
recovery-1.0

Please provide any additional information below.

there is an error in the script /etc/init.d/rcS in the line 72
        if [`/usr/sbin/find_run_script.sh patchstick.sh` -eq 0 ]; then

don't work as expected

_ first it shoud have a space between the "[" and the command 
`/usr/sbin/find_run_script.sh patchstick.sh`
        if [ `/usr/sbin/find_run_script.sh patchstick.sh` -eq 0 ]; then

_ second the test compares with the stdout, not with the exit code

i recomend separate in two lines 
        /usr/sbin/find_run_script.sh patchstick.sh
        if [ $? -eq 0 ]; then

Original issue reported on code.google.com by [email protected] on 19 Jun 2012 at 12:33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant