7,137
edits
(→雑多なメモ) |
|||
(One intermediate revision by the same user not shown) | |||
Line 55: | Line 55: | ||
<syntaxhighlight lang="bash" enclose="div"> | <syntaxhighlight lang="bash" enclose="div"> | ||
docker exec -it openwrt | docker exec -it openwrt uci set network.lan.ipaddr='`docker inspect --format="{{ .NetworkSettings.IPAddress }}" openwrt`' | ||
docker exec -it openwrt uci commit | docker exec -it openwrt uci commit | ||
docker exec -it openwrt /etc/init.d/odhcpd disable | docker exec -it openwrt /etc/init.d/odhcpd disable | ||
Line 74: | Line 74: | ||
cat <<EOF > /bin/wget | cat <<EOF > /bin/wget | ||
#/bin/ash | #/bin/ash | ||
/bin/wget.orig \$* | /bin/wget.orig -4 \$* | ||
EOF | EOF | ||
chmod +x /bin/wget | chmod +x /bin/wget |