Skip to content
Permalink
Browse files

PATCH-000002 Improve first boot output

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 16, 2019
1 parent 7104efe commit a020f4aff84e6903d0cacc200e59b9e6f99c6baa
Showing with 16 additions and 1 deletion.
  1. +10 −1 bootscreen.sh
  2. +6 −0 quickfix.sh
@@ -15,8 +15,17 @@ display_screen() {
--infobox "$output" 20 72
}

if [[ ! -e /var/log/nems/patches.log ]]; then
touch /var/log/nems/patches.log
fi

while ! grep -q "PATCH-000002" /var/log/nems/patches.log; do
output="\n\nFilesystem is being resized.\n\nNEMS will reboot. Please standby..."
display_screen "NEMS Linux $ver"
sleep 10
done

# Loading screen
fortune=$(/usr/games/fortune)
output="\n\nNEMS Linux is loading..."
display_screen "NEMS Linux $ver"
sleep 10
@@ -1,6 +1,12 @@
#!/bin/bash
allowupdate=`/usr/local/bin/nems-info allowupdate`

# Wait for 90 seconds if system just booted
suptime=$(awk '{print $1}' /proc/uptime)
while [[ $suptime < 120 ]]; then
echo "System is still loading. Please wait..."
sleep 90
fi

# Just in case nems-quickfix is running
quickfix=$(/usr/local/bin/nems-info quickfix)

0 comments on commit a020f4a

Please sign in to comment.
You can’t perform that action at this time.