tools: add rpi_debug.sh script
This commit is contained in:
parent
e43e93c236
commit
9cb0a474e4
15
tools/rpi_debug.sh
Executable file
15
tools/rpi_debug.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $# -ne 1 ]]; then
|
||||
echo "usage: $0 <on|off>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
debug="0"
|
||||
[[ "$1" != "on" ]] || debug=0xFFFFFF
|
||||
|
||||
set -x
|
||||
|
||||
for module in /sys/module/bcm2835_*; do
|
||||
echo $debug | tee $module/parameters/debug
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user