mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
eudev: fix printf usage in init script
Using a variable in a printf format string may lead to undesirable results if the variable contains format controls, so replace printf "foo $var bar" by printf "foo %s bar" "$var" Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
3f568fe099
commit
6298ed8bf4
@ -27,7 +27,7 @@ test -r $UDEV_CONFIG || exit 6
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
printf "Populating ${udev_root:-/dev} using udev: "
|
printf "Populating %s using udev: " "${udev_root:-/dev}"
|
||||||
printf '\000\000\000\000' > /proc/sys/kernel/hotplug
|
printf '\000\000\000\000' > /proc/sys/kernel/hotplug
|
||||||
$UDEV_BIN -d || { echo "FAIL"; exit 1; }
|
$UDEV_BIN -d || { echo "FAIL"; exit 1; }
|
||||||
udevadm trigger --type=subsystems --action=add
|
udevadm trigger --type=subsystems --action=add
|
||||||
|
Loading…
x
Reference in New Issue
Block a user