parent
bbccd0724c
commit
684695cbb5
@ -1,20 +1,22 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
ENABLED=yes
|
||||
[ "$ENABLED" != "yes" ] && exit 0
|
||||
DEBUGMODE=no
|
||||
[[ ${ENABLED} == yes ]] || exit 0
|
||||
|
||||
SOURCE=/usr/lib/ublinux/functions; [[ -f ${SOURCE} ]] && . ${SOURCE} 2>/dev/null || exit 0
|
||||
SOURCE=/usr/lib/ublinux/os-config; [[ -f ${SOURCE} ]] && . ${SOURCE} 2>/dev/null || exit 0
|
||||
unset ROOTFS; [[ -d /usr/lib/ublinux ]] || ROOTFS=.
|
||||
#SOURCE=${ROOTFS}/usr/lib/ublinux/functions; [[ -f ${SOURCE} ]] && . ${SOURCE} 2>/dev/null || exit 0
|
||||
SOURCE=${ROOTFS}/usr/lib/ublinux/os-config; [[ -f ${SOURCE} ]] && . ${SOURCE} 2>/dev/null || exit 0
|
||||
|
||||
SYSCONF="${ROOTFS}/${SYSCONF}"
|
||||
SOURCE=${SYSCONF}/config; [[ -f ${SOURCE} ]] && . ${SOURCE} 2>/dev/null
|
||||
SOURCE=${SYSCONF}/keyboard; [[ -f ${SOURCE} ]] && . ${SOURCE} 2>/dev/null
|
||||
|
||||
debug_mode "$0" "$@"
|
||||
|
||||
|
||||
[ "$NUMLOCK" = "yes" ] && for tty in /dev/tty[1-8]; do setleds -D +num < $tty ; done
|
||||
[ "$NUMLOCK" = "no" ] && for tty in /dev/tty[1-8]; do setleds -D -num < $tty ; done
|
||||
[[ ${NUMLOCK} == @(yes|on) ]] && for tty in /dev/tty[1-8]; do setleds -D +num < ${tty}; done
|
||||
[[ ${NUMLOCK} == @(no|off) ]] && for tty in /dev/tty[1-8]; do setleds -D -num < ${tty}; done
|
||||
|
||||
# kill -RTMIN+21 1 || busybox kill -RTMIN+21 1
|
||||
[[ -x /usr/bin/plymouth ]] && /usr/bin/plymouth --wait quit
|
||||
[[ -x /lib/systemd/systemd-vconsole-setup ]] && /lib/systemd/systemd-vconsole-setup
|
||||
[[ -x /usr/lib/systemd/systemd-vconsole-setup ]] && /usr/lib/systemd/systemd-vconsole-setup
|
||||
readlink -f /etc/systemd/system/default.target 2>/dev/null | grep -q multi-user.target && chvt 2
|
||||
|
||||
Loading…
Reference in new issue