Update Dockerfile; add config for bridger

This commit is contained in:
Daniel Pawlik
2023-07-25 10:55:06 +02:00
parent d219dd5b6f
commit 781eb635e9
3 changed files with 6986 additions and 3 deletions

View File

@@ -8,7 +8,8 @@ RUN dnf -y install vim bash-completion bzip2 gcc gcc-c++ git make ncurses-devel
perl-Thread-Queue hostname perl-IPC-Cmd swig ccache-swig && \
dnf install -y clang llvm gcc libbpf-devel libxdp-devel xdp-tools \
bpftool kernel-headers elfutils-libelf-devel zlib-devel libpcap-devel \
m4 wireshark-cli && \
m4 wireshark-cli python3-netifaces python3-unidecode \
python3-sqlparse python3-aiosignal python3-charset-normalizer python3-frozenlist && \
dnf clean all
RUN useradd -m user && \

File diff suppressed because it is too large Load Diff

View File

@@ -1,8 +1,9 @@
#!/bin/bash
# DEVICE can be main or <nothing>
DEVICE="${DEVICE:$1}"
FULL_WPAD="${FULL_WPAD:'yes'}"
DEVICE="${DEVICE:-$1}"
FULL_WPAD="${FULL_WPAD:-'yes'}"
INSTALL_BRIDGER=${INSTALL_BRIDGER:-'true'}
COMMAND="opkg update"
if [[ "$FULL_WPAD" =~ yes|Yes ]]; then
@@ -25,6 +26,10 @@ if [[ "$DEVICE" =~ Main|main ]]; then
COMMAND="$COMMAND luci-app-sqm luci-i18n-sqm-pl collectd-mod-sqm"
fi
if ! [[ "$DEVICE" =~ Main|main ]] && [[ "$INSTALL_BRIDGER" =~ True|true ]]; then
COMMAND="$COMMAND bridger"
fi
COMMAND="$COMMAND; /etc/init.d/uhttpd start ; /etc/init.d/uhttpd enable;"
read -n 1 -r -p "Should I execute command: $COMMAND ?" yn