package_selections/**: ensure that we have an internet connection where we need it

master
BodgeMaster 2023-07-03 14:11:57 +02:00
parent b8ebdffc56
commit a8a62834d4
28 changed files with 33 additions and 0 deletions

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
return 0 return 0
} }

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
return 0 return 0
} }

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
return 0 return 0
} }

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/icewm" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/icewm" /tmp/stage-2-choices >/dev/null 2>&1; then
return 0 return 0
else else
@ -11,6 +12,8 @@ DESCRIPTION="Add some desktop backgrounds and randomly choose one on login"
PACKAGES="" PACKAGES=""
function post_install { function post_install {
# TODO: install wget
# TODO: configure # TODO: configure
# TODO: remove wget
echo "extras/desktop-backgrounds" >> /tmp/stage-2-choices echo "extras/desktop-backgrounds" >> /tmp/stage-2-choices
} }

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if xbps-query glibc >/dev/null 2>&1; then if xbps-query glibc >/dev/null 2>&1; then
return 0 return 0
else else
@ -9,6 +10,7 @@ function check {
DESCRIPTION="Latest Nvidia driver, supports GTX ??? series and up" DESCRIPTION="Latest Nvidia driver, supports GTX ??? series and up"
#TODO: optimus support? #TODO: optimus support?
#TODO: void-repo-nonfree
PACKAGES="nvidia" PACKAGES="nvidia"
function post_install { function post_install {

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if xbps-query glibc >/dev/null 2>&1; then if xbps-query glibc >/dev/null 2>&1; then
return 0 return 0
else else
@ -9,6 +10,7 @@ function check {
DESCRIPTION="Legacy Nvidia driver, version 390, supports GTX ??? series" DESCRIPTION="Legacy Nvidia driver, version 390, supports GTX ??? series"
#TODO: Optimus support? #TODO: Optimus support?
#TODO: void-repo-nonfree
PACKAGES="nvidia390" PACKAGES="nvidia390"
function post_install { function post_install {

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if xbps-query glibc >/dev/null 2>&1; then if xbps-query glibc >/dev/null 2>&1; then
return 0 return 0
else else
@ -9,6 +10,7 @@ function check {
DESCRIPTION="Legacy Nvidia driver, version 470, supports GTX ??? series" DESCRIPTION="Legacy Nvidia driver, version 470, supports GTX ??? series"
#TODO: optimus support? #TODO: optimus support?
#TODO: void-repo-nonfree
PACKAGES="nvidia470" PACKAGES="nvidia470"
function post_install { function post_install {

View File

@ -8,6 +8,7 @@ PACKAGES=""
function post_install { function post_install {
#TODO: configure things #TODO: configure things
# (probably by barfing the bashrc using echo)
echo "pre-configure/bashrc" >> /tmp/stage-2-choices echo "pre-configure/bashrc" >> /tmp/stage-2-choices
} }

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/icewm" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/icewm" /tmp/stage-2-choices >/dev/null 2>&1; then
if grep "audio/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "audio/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 0 return 0

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/icewm" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/icewm" /tmp/stage-2-choices >/dev/null 2>&1; then
if grep "audio/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "audio/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
return 0 return 0
} }

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else

View File

@ -1,4 +1,5 @@
function check { function check {
[ "$INTERNET" = "down" ] && return 1
if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then if grep "desktop/none" /tmp/stage-2-choices >/dev/null 2>&1; then
return 1 return 1
else else