Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store

Empty file added ovl/etc/.default_boot_services
Empty file.
43 changes: 43 additions & 0 deletions ovl/etc/local.d/headless.start
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/sh

__create_eni()
{
cat <<-EOF > /etc/network/interfaces
auto lo
iface lo inet loopback
auto wlan0
iface wlan0 inet dhcp
hostname pi
EOF
}

__create_eww()
{
cat <<-EOF > /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="ssid"
psk="password"
}
EOF
}

__edit_ess()
{
cat <<-EOF >> /etc/ssh/sshd_config
PermitEmptyPasswords yes
PermitRootLogin yes
EOF
}

apk add wpa_supplicant
__create_eww
__create_eni
rc-service wpa_supplicant start
rc-service networking start

/sbin/setup-sshd -c openssh
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.orig
__edit_ess
rc-service sshd restart
mv /etc/ssh/sshd_config.orig /etc/ssh/sshd_config
12 changes: 0 additions & 12 deletions ovl/etc/network/interfaces

This file was deleted.

2 changes: 0 additions & 2 deletions ovl/etc/resolv.conf

This file was deleted.

1 change: 0 additions & 1 deletion ovl/etc/runlevels/default/headless

This file was deleted.

1 change: 1 addition & 0 deletions ovl/etc/runlevels/default/local
4 changes: 0 additions & 4 deletions ovl/etc/wpa_supplicant/wpa_supplicant.conf

This file was deleted.

20 changes: 0 additions & 20 deletions ovl/usr/local/bin/headless.sh

This file was deleted.

10 changes: 0 additions & 10 deletions ovl/usr/local/etc/init.d/headless

This file was deleted.