install: Connect to network on first "real" boot
This commit is contained in:
@@ -119,6 +119,10 @@ EOF
|
|||||||
# Run
|
# Run
|
||||||
cat << 'EOF' > /root/.bash_profile
|
cat << 'EOF' > /root/.bash_profile
|
||||||
if [[ "\$(tty)" == "/dev/tty1" ]] ; then
|
if [[ "\$(tty)" == "/dev/tty1" ]] ; then
|
||||||
|
while ! ping -w 3 -c 3 8.8.8.8 ; do
|
||||||
|
nmtui
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
rm -rf /etc/systemd/system/getty@tty1.service.d/
|
rm -rf /etc/systemd/system/getty@tty1.service.d/
|
||||||
if /var/lib/dotfiles/install.sh ; then
|
if /var/lib/dotfiles/install.sh ; then
|
||||||
rm -f /root/.bash_profile
|
rm -f /root/.bash_profile
|
||||||
|
|||||||
@@ -119,6 +119,10 @@ EOF
|
|||||||
# Run
|
# Run
|
||||||
cat << 'EOF' > /root/.bash_profile
|
cat << 'EOF' > /root/.bash_profile
|
||||||
if [[ "\$(tty)" == "/dev/tty1" ]] ; then
|
if [[ "\$(tty)" == "/dev/tty1" ]] ; then
|
||||||
|
while ! ping -w 3 -c 3 8.8.8.8 ; do
|
||||||
|
nmtui
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
rm -rf /etc/systemd/system/getty@tty1.service.d/
|
rm -rf /etc/systemd/system/getty@tty1.service.d/
|
||||||
if /var/lib/dotfiles/install.sh ; then
|
if /var/lib/dotfiles/install.sh ; then
|
||||||
rm -f /root/.bash_profile
|
rm -f /root/.bash_profile
|
||||||
|
|||||||
Reference in New Issue
Block a user