Yep, that's what I thought. You somehow managed to mess up the permissions of that shell script -- it's not executable anymore, hence the 'Permission denied' message.
Let me guess.. You edited the file as non-root user (e.g. using mousepad), couldn't overwrite the original file so you saved it under a different name, deleted the original file and renamed your modified script.
To fix this, you will have to restore the original permissions.
First of all, take a look at the original permissions:
pandora2:/# tar tvfz /sd1/mmc_insert_script-17Nov2013.tar.gz
-rw-r--r-- root/root 215 2013-11-17 20:47 etc/udev/rules.d/mmc_script.rules
-rwxr-xr-x root/root 106 2013-11-17 21:13 home/root/mmc_insert.sh
-rwxr-xr-x root/root 479 2013-11-17 21:21 home/root/mount_aufs.sh
pandora2:/#
(you'll have to adjust the path to the .tar.gz, of course)
Now take a look at how your current permissions look like:
pandora2:~$ sudo su
Password:
pandora2:/home/bsp# cd /
pandora2:/# ls -ld `tar tfz /sd1/mmc_insert_script-17Nov2013.tar.gz `
-rw-r--r-- 1 root root 215 Nov 17 20:47 etc/udev/rules.d/mmc_script.rules
-rwxr-xr-x 1 root root 106 Nov 17 21:13 home/root/mmc_insert.sh
-rwxr-xr-x 1 root root 594 Nov 19 14:16 home/root/mount_aufs.sh
pandora2:/#
(
most likely different than this!)
Now fix the permissions of the mount_aufs.sh script:
pandora2:/# chmod 755 /home/root/mount_aufs.sh
and make sure that they are correct now:
Code:
pandora2:/# ls -ld /home/root/mount_aufs.sh
-rwxr-xr-x 1 root root 594 Nov 19 14:16 /home/root/mount_aufs.sh