Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix simevent - smdev - suckless mdev
git clone git://git.suckless.org/smdev
Log
Files
Refs
README
LICENSE
---
commit dc0149bbdeb0eebac1636c4afa16906ef76d06b3
parent cdfaba6355fa24376847d11cd71e4c2ade92869e
Author: sin <[email protected]>
Date: Tue, 27 Aug 2013 12:51:42 +0100
Fix simevent
Diffstat:
M simevent | 4 ++--
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
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.