reppmic Posted January 21, 2021 Share Posted January 21, 2021 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 Quote Link to comment
itimpi Posted January 21, 2021 Share Posted January 21, 2021 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? 1 Quote Link to comment
reppmic Posted January 21, 2021 Author Share Posted January 21, 2021 ok thanks for this info with emhttp daemon. but why is the chmod 777 /dev/bus/usb/001/003 command not working? must take a look in the user scripts plug-in , thanks for this hint Quote Link to comment
Recommended Posts
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.