13 lines
445 B
Plaintext
13 lines
445 B
Plaintext
packages() {
|
|
addpkg dhcpcd
|
|
}
|
|
|
|
config() {
|
|
enable_service dhcpcd
|
|
echo "network={" >> /etc/wpa_supplicant/wpa_supplicant.conf
|
|
echo " ssid=\"celle.freifunk.net\"" >> /etc/wpa_supplicant/wpa_supplicant.conf
|
|
echo " key_mgmt=NONE" >> /etc/wpa_supplicant/wpa_supplicant.conf
|
|
echo "}" >> /etc/wpa_supplicant/wpa_supplicant.conf
|
|
mkdir -p /usr/libexec/dhcpcd-hooks
|
|
ln -s /usr/share/dhcpcd/hooks/10-wpa_supplicant /usr/libexec/dhcpcd-hooks
|
|
} |