need help with go file


reppmic

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 comment

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.