Fixlet for USB block for Linux

Dear All,

Can anyone, please share your feedback to create a fixlet script for the below shell script

  • /bin/bash -c “echo blacklist usb_storage >> /etc/modeprobe.d/blacklist.conf”

wait /bin/bash -c “echo blacklist usb_storage >> /etc/modeprobe.d/blacklist.conf”

I am getting “The operator “wait” is not defined” if i execute the above script.

If you are changing the script type to sh, you should not need wait.

Try just this:
bash -c “echo blacklist usb_storage >> /etc/modeprobe.d/blacklist.conf”

2 Likes

thanks you so much, jgo…

Or You can make download that script using prefetch and run with bash ./filename.

1 Like