mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-15 12:33:28 +03:00
16 lines
No EOL
379 B
Bash
Executable file
16 lines
No EOL
379 B
Bash
Executable file
#!/bin/bash
|
|
|
|
while read line
|
|
do
|
|
IFS=' ' read -a module <<< "$line"
|
|
modprobe "${module[1]}"
|
|
done < /etc/modprobe.d/blockusbstorages.conf
|
|
|
|
echo "" | tee -a /etc/modprobe.d/blockusbstorages.conf
|
|
|
|
modprobe usb_storage
|
|
|
|
for usb_dev in /dev/disk/by-id/usb-*; do
|
|
dev=$(readlink -f $usb_dev)
|
|
grep -q ^$dev /proc/mounts && mount -f $dev
|
|
done |