commit dc0149bbdeb0eebac1636c4afa16906ef76d06b3
parent cdfaba6355fa24376847d11cd71e4c2ade92869e
Author: sin <sin@2f30.org>
Date: Tue, 27 Aug 2013 12:51:42 +0100
Fix simevent
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/simevent b/simevent
@@ -3,7 +3,7 @@
# Simulate add/remove events by writing directly
# into the uevent files.
-if [[ -z $1 ]]; then
+if [ -z $1 ]; then
echo "usage: $(basename $0) add|remove" 2>&1
exit 1
fi
@@ -11,7 +11,7 @@ fi
ev=$1
for i in $(find /sys/devices -type f); do
f=$(basename $i)
- if [[ $f = "dev" ]]; then
+ if [ "$f" = "dev" ]; then
d=$(dirname $i)
echo $ev > $d/uevent
fi