You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
290 B
Bash

#!/bin/bash
set -eu
. ./lib.shs
# typically: bring up the networks
ip link set dev lo up
# TODO: DHCP client!
ip addr add 192.168.0.2/24 dev wifi
# No IPv6 at public spaces lol (but we should try obtaining it anyway!
ip link set dev wifi up
ip route add default via 192.168.0.1 dev wifi