Add netboot generator script

This commit is contained in:
Michael Aldridge
2016-03-12 21:58:30 -06:00
parent 76ea7500b2
commit 414ebf318f
18 changed files with 444 additions and 2 deletions

18
dracut/netmenu/netmenu.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
dialog --colors --keep-tite --no-shadow --no-mouse \
--backtitle "\Zb\Z7Void Linux installation -- http://www.voidlinux.eu/\Zn" \
--cancel-label "Reboot" --aspect 20 \
--menu "Select an Action:" 10 50 2 \
"Install" "Run void-installer" \
"Shell" "Run dash" \
2>/tmp/netmenu.action
if ! $? ; then
reboot -f
fi
case $(cat /tmp/netmenu.action) in
"Install") /usr/bin/void-installer ; exec sh ;;
"Shell") exec sh ;;
esac