added default values for the interface devices for usb armory scripts
This commit is contained in:
parent
e86ada4297
commit
bdce34a1b1
2 changed files with 14 additions and 4 deletions
|
@ -1,8 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
set -v
|
set -v
|
||||||
USB_INTERFACE=enp0s20u3
|
if [[ -z "$USB_INTERFACE" ]]; then
|
||||||
INTERNET_INTERFACE=wlp3s0
|
USB_INTERFACE=usb0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "$INTERNET_INTERFACE" ]]; then
|
||||||
|
INTERNET_INTERFACE=wlan0
|
||||||
|
fi
|
||||||
|
|
||||||
echo 0 | sudo tee /proc/sys/net/ipv4/ip_forward
|
echo 0 | sudo tee /proc/sys/net/ipv4/ip_forward
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
set -v
|
set -v
|
||||||
USB_INTERFACE=enp0s20u3
|
if [[ -z "$USB_INTERFACE" ]]; then
|
||||||
INTERNET_INTERFACE=wlp3s0
|
USB_INTERFACE=usb0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -z "$INTERNET_INTERFACE" ]]; then
|
||||||
|
INTERNET_INTERFACE=wlan0
|
||||||
|
fi
|
||||||
|
|
||||||
sudo /sbin/ip link set $USB_INTERFACE up
|
sudo /sbin/ip link set $USB_INTERFACE up
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue