diff options
Diffstat (limited to 'remote/rootfs/rootfs-stage31/data/init')
-rwxr-xr-x | remote/rootfs/rootfs-stage31/data/init | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init index b3681eee..b91818fa 100755 --- a/remote/rootfs/rootfs-stage31/data/init +++ b/remote/rootfs/rootfs-stage31/data/init @@ -33,7 +33,7 @@ mkdir -p "$FUTURE_ROOT/opt/openslx" # let kernel know that mdev is to be used for hotplug echo "/sbin/mdev" > /proc/sys/kernel/hotplug -# read kernel command line for debugging switch +# read kernel command line DEBUG=0 SPLASH=0 read KCL < "/proc/cmdline" @@ -51,8 +51,12 @@ for opts in ${KCL}; do ;; BOOTIF=*) MAC="$( echo "$opts" | cut -b 11- | tr '-' ':' | tr '[A-Z]' '[a-z]' )" ;; # make mac lowercase for udev (see setup_network) - splash*) - [ -e "/etc/splash.ppm" ] && SPLASH=1 + splash) + [ -e "/etc/splash.ppm" ] && SPLASH=1 ;; + nvidia) + GFX=nvidia ;; + ati|amd) + GFX=amd ;; esac done @@ -119,7 +123,7 @@ done echo "Switching root...." echo "$bench_result" > "${FUTURE_ROOT}/opt/openslx/.benchmark" # Prepare environment (HOME is needed as a hack for nss_ldap with ssl and no caching) -unset BOOT_IMAGE initrd KCL ip slxbase slxsrv IPINFO vga ip MAC BOOTIF DEBUG OLDPWD MUTED_OUTPUT +unset BOOT_IMAGE initrd KCL ip slxbase slxsrv IPINFO vga ip MAC BOOTIF DEBUG OLDPWD MUTED_OUTPUT GFX export HOME=/ export init="/usr/lib/systemd/systemd" export recovery= |