pep-mklive/dracut/netmenu/netmenu.sh

19 lines
490 B
Bash
Raw Normal View History

2024-10-27 15:16:46 -01:00
#!/bin/sh
dialog --colors --keep-tite --no-shadow --no-mouse \
--backtitle "\Zb\Z7Peppermintos installation -- https://peppermintos.com/\Zn" \
--cancel-label "Reboot" --aspect 20 \
--menu "Select an Action:" 10 50 2 \
"Install" "Run pep-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