Skip to content

Commit f21ae0e

Browse files
committed
disable HDMI and USB, LAN
1 parent 99c6e81 commit f21ae0e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docker/start.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
#!/bin/sh
2-
3-
cd /coderbot && modprobe i2c-dev && python3 coderbot/main.py
2+
# disable ethernet, usb
3+
[ "$CODERBOT_disable_eth_usb" = "true" ] && echo '1-1' | tee /sys/bus/usb/drivers/usb/unbind
4+
# disable HDMI output
5+
/usr/bin/tvservice -o
6+
# enable i2c driver
7+
modprobe i2c-dev
8+
# set home
9+
cd /coderbot
10+
# start coderbot
11+
python3 coderbot/main.py

0 commit comments

Comments
 (0)