mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-09 04:51:27 +02:00
pentoo-livecd: X fails below 700MB ram, so put a warning in there and don't auto start X
This commit is contained in:
parent
955265ab44
commit
60ca27b031
2 changed files with 8 additions and 2 deletions
|
|
@ -55,7 +55,13 @@ if ! sudo grep -q "${changeuser}:!" /etc/shadow; then
|
|||
else
|
||||
printf "Something went wrong, aborting password set. Please report this issue\n"
|
||||
fi
|
||||
x_or_no
|
||||
RAMSIZE=$(awk '/MemTotal/ {printf( "%.0f\n", int ( $2 / 1024 ) + 1)}' /proc/meminfo)
|
||||
if [ "${RAMSIZE}" -gt "700" ]; then
|
||||
x_or_no
|
||||
else
|
||||
printf "Your system doesn't have enough ram to run X properly. Please increase the amount of ram if possible.\n"
|
||||
choose_x="n"
|
||||
fi
|
||||
if [ "${choose_x}" = "y" ]; then
|
||||
printf "Remember to log in with user \"${changeuser}\" and the password you just set\n"
|
||||
printf "*Press any key to start X securely.*\n"
|
||||
|
|
@ -37,7 +37,7 @@ src_install() {
|
|||
#/usr/sbin
|
||||
newsbin "${FILESDIR}"/flushchanges-2018.0 flushchanges
|
||||
newsbin "${FILESDIR}"/makemo-2020.3 makemo
|
||||
newsbin "${FILESDIR}"/livecd-setpass-r7 livecd-setpass
|
||||
newsbin "${FILESDIR}"/livecd-setpass-r8 livecd-setpass
|
||||
|
||||
newinitd "${FILESDIR}"/binary-driver-handler.initd-2020.3-r1 binary-driver-handler
|
||||
|
||||
Loading…
Reference in a new issue