davilla / atvusb-creator

Automatically exported from code.google.com/p/atvusb-creator
26 stars 53 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 ucla...@gmail.com on 19 Jun 2012 at 12:22

GoogleCodeExporter commented 9 years ago
sorry my mistake the issue is for atv-bootloader

Original comment by ucla...@gmail.com on 19 Jun 2012 at 12:32