need help with go file


3 posts in this topic Last Reply

Recommended Posts

Hi,

 

i need help with my go file :

 

#!/bin/bash
# Start the Management Utility
chmod 777 /dev/bus/usb/001/003
cp /mnt/disk8/isos/prename.pl /usr/bin
chmod 777 /usr/bin/prename.pl
modprobe i915
chown -R nobody:users /dev/dri
chmod -R 777 /dev/dri

/usr/local/sbin/emhttp &

bash_profile () {
        if [ -f /root/.bash_profile ]; then
                cat /boot/config/mybashprofile >> /root/.bash_profile
        fi
}

# Update Bash Profile
bash_profile

 

its working 50%, this commands are not executed after boot :

 

chmod 777 /dev/bus/usb/001/003

cp /mnt/disk8/isos/prename.pl /usr/bin

chmod 777 /usr/bin/prename.pl

 

i dont know why - these commands are working 100% when i execute them in a shell after reboot

 

help would be great


 

 


 

Link to post

You are trying to run the commands before starting the emhttp daemon.     Also /mnt/disk8 will not be available until after the array has successfully been started.    Maybe you would better off running commands that need the array started via the User Scripts plug-in?

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.