diff options
author | James Meyer <james.meyer@operamail.com> | 2012-12-01 18:26:09 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-12-01 18:26:22 (GMT) |
commit | e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37 (patch) | |
tree | bee3fe89f2988dd244e11791755e129aa8c03b14 /abs/core/linhes-live/bin/km | |
parent | 8132c218cfc1f1acb1c6d12154e0d4ca075e77f2 (diff) | |
download | linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.zip linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.gz linhes_pkgbuild-e2c33b0fae1fa4af8bbbfc917eb8e13a3ac0cb37.tar.bz2 |
Mass move of uncompiled packages to abs_not_built.
The will sit here for a bit, and then will be removed completely if no one claims them.
Diffstat (limited to 'abs/core/linhes-live/bin/km')
-rwxr-xr-x | abs/core/linhes-live/bin/km | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/abs/core/linhes-live/bin/km b/abs/core/linhes-live/bin/km deleted file mode 100755 index 386d966..0000000 --- a/abs/core/linhes-live/bin/km +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/sh -# $Id: km,v 1.2 2005/12/13 04:14:53 judd Exp $ -# Modified by gradgrind to deal only with i386 keymaps -# and BASEDIR changed -# - also saves results to /etc/rc.conf - -# test if the script is started by root user. If not, exit -if [ $UID -ne 0 ]; then - echo "This should be run as root"; exit 1 -fi - -ANSWER="/tmp/.km" -BASEDIR="/usr/share/kbd" - -domenu() -{ - menutype=$1 ; shift - text=$1 ; shift - height=$1 ; shift - width=$1 ; shift - mheight=$1 ; shift - - dialog --cancel-label "Skip" --$menutype "$text" $height $width $mheight $* -} - -if [ ! -d $BASEDIR/keymaps ]; then - echo "Cannot load keymaps, as none were found in $BASEDIR/keymaps" >&2 - exit 1 -else - echo "Scanning for keymaps..." - KEYMAPS= - for t in qwerty qwertz azerty dvorak; do - for i in `find $BASEDIR/keymaps/i386/$t -follow -name "*.gz"`; do - fn=`echo $i | sed "s|$BASEDIR/keymaps/i386/||"` - KEYMAPS="$KEYMAPS $fn -" - done - done - domenu menu "Select A Keymap" 22 60 16 $KEYMAPS 2>$ANSWER - keymap=`cat $ANSWER` -fi - -if [ ! -d $BASEDIR/consolefonts ]; then - echo "Cannot load consolefonts, as none were found in $BASEDIR/consolefonts" >&2 -else - echo "Scanning for fonts..." - FONTS= - for i in `find $BASEDIR/consolefonts -follow -name "*.gz"`; do - fn=`echo $i | sed "s|$BASEDIR/consolefonts/||"` - FONTS="$FONTS $fn -" - done - domenu menu "Select A Console Font" 22 60 16 $FONTS 2>$ANSWER - font=`cat $ANSWER` -fi - -if [ "$keymap" ]; then - echo "Loading keymap: $keymap" - loadkeys -q $BASEDIR/keymaps/i386/$keymap - sed -i "s|^KEYMAP=.*|KEYMAP=\"$( echo $keymap | \ - cut -d'.' -f1 )\"|" /etc/rc.conf -fi - -if [ "$font" ]; then - echo "Loading font: $font" - for i in `seq 1 4`; do - if [ -d /dev/vc ]; then - setfont $BASEDIR/consolefonts/$font -C /dev/vc/${i} - else - setfont $BASEDIR/consolefonts/$font -C /dev/tty${i} - fi - done - sed -i "s|^CONSOLEFONT=.*|CONSOLEFONT=\"$( echo $font | \ - cut -d'.' -f1 )\"|" /etc/rc.conf -fi - -exit 0 - |