Commit f9674801 authored by jan.koester's avatar jan.koester
Browse files

test

parent c2215c71
Loading
Loading
Loading
Loading
+2 −2
Changes for src/syslite.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -31,12 +31,12 @@ namespace syslite {
        // Configuration is compile-time (config.h). Hostname from /etc/hostname.
        // Register TTYs based on compiled-in count.
        // On a live ISO (squashfs boot), run the installer on tty1.
        bool liveMode = std::filesystem::exists("/usr/local/sbin/install.lua")
        bool liveMode = std::filesystem::exists("/usr/local/sbin/install")
                     && !std::filesystem::exists("/etc/fstab");
        for (int i = 1; i <= _numTtys; ++i) {
            std::string dev = "/dev/tty" + std::to_string(i);
            if (i == 1 && liveMode) {
                _ttys.addTty(dev, "/usr/local/bin/lua /usr/local/sbin/install.lua");
                _ttys.addTty(dev, "/usr/local/sbin/install");
            } else {
                _ttys.addTty(dev);
            }