-
Notifications
You must be signed in to change notification settings - Fork 41
/
debug
executable file
·31 lines (25 loc) · 1.07 KB
/
debug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
##############################################
## ##
## Menu ##
## debugs menu ##
## ##
##############################################
## Adjust these:
export KPSCREENSIZE=3.5 ## Screensize in inch, Options= 3.5, 2.8
export KPLAYOUT=9 ## Number of buttons - Currently only 9 is supported
export KPPIN=1 ## Set to "1" to enforce PIN authentication, run ./set-pin to change PIN
export KPTIMEOUT=2 ## Minutes before screensaver kicks in, comment out for screensaver off
## End adjustments
export FRAMEBUFFER=/dev/fb1
export MENUDIR="/home/pi/Kali-Pi/Menus/"
if [ $KPPIN == "1" ]; then
startpage="menu-pin.py menu-1.py"
## /usr/bin/env python -m trace -t $MENUDIR$startpage > debug_trace.txt
/usr/bin/env python $MENUDIR$startpage
else
startpage="menu-1.py"
## /usr/bin/env python -m trace -t $MENUDIR$startpage > debug_trace.txt
/usr/bin/env python $MENUDIR$startpage
fi
echo $?