fiss-linux

Some linux scripts for fiss
Log | Files | Refs | LICENSE

03-console-setup.sh (689B)


      1 # vim: set ts=4 sw=4 et:
      2 
      3 [ -n "$VIRTUALIZATION" ] && return 0
      4 
      5 TTYS=${TTYS:-12}
      6 if [ -n "$FONT" ]; then
      7     msg "Setting up TTYs font to '${FONT}'..."
      8 
      9     _index=0
     10     while [ ${_index} -le $TTYS ]; do
     11         setfont ${FONT_MAP:+-m $FONT_MAP} ${FONT_UNIMAP:+-u $FONT_UNIMAP} \
     12                 $FONT -C "/dev/tty${_index}"
     13         _index=$((_index + 1))
     14     done
     15 fi
     16 
     17 if [ -n "$KEYMAP" ]; then
     18     msg "Setting up keymap to '${KEYMAP}'..."
     19     loadkeys -q -u ${KEYMAP}
     20 fi
     21 
     22 if [ -n "$HARDWARECLOCK" ]; then
     23     msg "Setting up RTC to '${HARDWARECLOCK}'..."
     24     TZ=$TIMEZONE hwclock --systz \
     25         ${HARDWARECLOCK:+--$(echo $HARDWARECLOCK |tr A-Z a-z) --noadjfile} || emergency_shell
     26 fi