Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /