Skip to content

Commit 1a026de

Browse files
committed
Add support for different interface name
1 parent e32842a commit 1a026de

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM alpine:latest
22

33
# Default firmware version
44
ARG FIRMWARE_VERSION=1100
5+
ARG INTERFACE=eth0
56

67
# Install necessary dependencies and download PPPwn++
78
RUN apk add --no-cache bash wget curl unzip tar && \

docker/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ services:
55
image: softwarerat/pppwn_live:latest
66
environment:
77
- FIRMWARE_VERSION=1000
8+
- INTERFACE=eth0
89
network_mode: host
910
restart: unless-stopped

docker/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ if [ ! -f "/opt/pppwn/stage1.bin" ] || [ ! -f "/opt/pppwn/stage2.bin" ]; then
1818
fi
1919

2020
# Run PPPwn++
21-
/opt/pppwn/pppwn -i eth0 --fw $FIRMWARE_VERSION --stage1 /opt/pppwn/stage1.bin --stage2 /opt/pppwn/stage2.bin -a
21+
/opt/pppwn/pppwn -i ${INTERFACE:-eth0} --fw $FIRMWARE_VERSION --stage1 /opt/pppwn/stage1.bin --stage2 /opt/pppwn/stage2.bin -a

0 commit comments

Comments
 (0)