prevent shell expansion
This commit is contained in:
parent
72aabc6a60
commit
f5891c7811
4
config
4
config
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# debug mode
|
# debug mode
|
||||||
#debug=1
|
debug=1
|
||||||
|
|
||||||
# parse fstab
|
# parse fstab
|
||||||
#use_fstab=0
|
#use_fstab=0
|
||||||
@ -21,7 +21,7 @@ root="UUID=07729c48-25d8-4096-acaf-ce5322915680"
|
|||||||
devmgr="mdev"
|
devmgr="mdev"
|
||||||
|
|
||||||
# hostonly mode
|
# hostonly mode
|
||||||
#hostonly=1
|
hostonly=1
|
||||||
|
|
||||||
# drivers
|
# drivers
|
||||||
#drivers=""
|
#drivers=""
|
||||||
|
4
generate
4
generate
@ -126,12 +126,12 @@ install_drivers() {
|
|||||||
if [ "$hostonly" = 1 ]; then
|
if [ "$hostonly" = 1 ]; then
|
||||||
[ -n "$root_type" ] || panic "hostonly mode required root_type option to be configured"
|
[ -n "$root_type" ] || panic "hostonly mode required root_type option to be configured"
|
||||||
for modalias in $(find /sys/devices -name modalias -exec sort -u "{}" "+"); do
|
for modalias in $(find /sys/devices -name modalias -exec sort -u "{}" "+"); do
|
||||||
for driver in $(modprobe -D $modalias 2>/dev/null | cut -d " " -f 2); do
|
for driver in $(modprobe -D "$modalias" 2>/dev/null | cut -d " " -f 2); do
|
||||||
install -Dm644 "$driver" "${tmpdir}${driver}"
|
install -Dm644 "$driver" "${tmpdir}${driver}"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
for root_driver in $(modprobe -D $root_type 2>/dev/null | cut -d " " -f 2); do
|
for root_driver in $(modprobe -D "$root_type" 2>/dev/null | cut -d " " -f 2); do
|
||||||
install -Dm644 "$root_driver" "${tmpdir}${root_driver}"
|
install -Dm644 "$root_driver" "${tmpdir}${root_driver}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user