[hackers] [smdev] Add bin/ || sin

From: <git_AT_suckless.org>
Date: Sun, 28 Sep 2014 14:18:09 +0200

commit 4dadb2182fb9d710eb110159c298a5591c784eaa
Author: sin <sin_AT_2f30.org>
Date: Sun Sep 28 13:17:53 2014 +0100

    Add bin/

diff --git a/bin/simevent b/bin/simevent
new file mode 100755
index 0000000..ec99927
--- /dev/null
+++ b/bin/simevent
_AT_@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# Simulate add/remove events by writing directly
+# into the uevent files.
+
+if [ -z $1 ]; then
+ echo "usage: $(basename $0) add|remove" 2>&1
+ exit 1
+fi
+
+ev=$1
+for i in $(find /sys/devices -type f); do
+ f=$(basename $i)
+ if [ "$f" = "dev" ]; then
+ d=$(dirname $i)
+ echo $ev > $d/uevent
+ fi
+done
diff --git a/simevent b/simevent
deleted file mode 100755
index ec99927..0000000
--- a/simevent
+++ /dev/null
_AT_@ -1,18 +0,0 @@
-#!/bin/sh
-#
-# Simulate add/remove events by writing directly
-# into the uevent files.
-
-if [ -z $1 ]; then
- echo "usage: $(basename $0) add|remove" 2>&1
- exit 1
-fi
-
-ev=$1
-for i in $(find /sys/devices -type f); do
- f=$(basename $i)
- if [ "$f" = "dev" ]; then
- d=$(dirname $i)
- echo $ev > $d/uevent
- fi
-done
Received on Sun Sep 28 2014 - 14:18:09 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 28 2014 - 14:24:10 CEST