logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

open_console.sh (360B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2024 Gábor Stefanik <netrolller.3d@gmail.com>
  3. #
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. if bash --version | grep -q 'GPLv3'; then
  6. env - PATH=${PREFIX}/bin PS1="\w # " openvt -- bash -i
  7. else
  8. bash -c 'while true; do printf "[early Bash - use Ctrl+D] $(pwd) # "; eval "$(cat /dev/tty2)"; done' &> /dev/tty2 &
  9. fi