summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-04-28 16:21:52 +0200
committerErich Eckner <git@eckner.net>2020-04-28 16:21:52 +0200
commit495a94d7717dac4d969393e8a504ed16d88317e8 (patch)
tree7c9d418de16618fc9bdff7dca739edad4badd5d4
parent3c8223357b5c93d2edd8bad9a8a3f3465b8fa86c (diff)
downloadraspi-lights-out-495a94d7717dac4d969393e8a504ed16d88317e8.tar.xz
redirect output
-rw-r--r--httpdocs/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpdocs/index.php b/httpdocs/index.php
index a697be3..108bf9c 100644
--- a/httpdocs/index.php
+++ b/httpdocs/index.php
@@ -1,6 +1,6 @@
<?php
-$f = popen('/usr/bin/gpio read 7', 'r');
+$f = popen('/usr/bin/gpio read 7 2>&1', 'r');
if ($f === false) {
print 'Cannot access gpio';
die();