mirror of
https://github.com/outbackdingo/openwrt-builder.git
synced 2026-01-27 10:19:59 +00:00
Update Dockerfile; add config for bridger
This commit is contained in:
@@ -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 && \
|
||||
|
||||
6977
configs/ramips/mt7621/extended-full-bridger
Normal file
6977
configs/ramips/mt7621/extended-full-bridger
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user