~eugenenuke/ubuntu/wily/console-setup/fix-for-1565542

« back to all changes in this revision

Viewing changes to setupcon

  • Committer: Bazaar Package Importer
  • Author(s): Anton Zinoviev
  • Date: 2006-11-13 21:24:44 UTC
  • mto: (3.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20061113212444-6qxdbq8dxxtr4tnu
Tags: 1.13
Unfuzzy the translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        -v|--verbose)
43
43
            verbose_option=yes
44
44
            ;;
 
45
        --force)
 
46
            force=yes
 
47
            ;;
45
48
        --save)
46
49
            save=yes
47
50
            ;;
52
55
 
53
56
  -k, --keyboard-only  setup the keyboard only, do not setup the font
54
57
  -f, --font-only      setup the font only, do not setup the keyboard
 
58
      --force          do not check whether we are on the console
55
59
  -v, --verbose        explain what is being doing, try it if s.t. goes wrong
56
60
      --save           copy the font and the ACM in /etc/console-setup,
57
61
                         update /etc/console-setup/boottime.kmap.gz
115
119
    fi
116
120
fi
117
121
 
118
 
case `readlink /proc/self/fd/2` in
119
 
    /dev/tty[0-9]*|/dev/vc/[0-9]*|/dev/console)
120
 
        ;;
121
 
    *)
122
 
        if [ "$VERBOSE_OUTPUT" = yes ]; then
123
 
            echo We are not on the Linux console, exiting.
124
 
        fi
125
 
        exit 0 
126
 
        ;;
127
 
esac
 
122
if [ "$force" != yes ]; then
 
123
    case `readlink /proc/self/fd/2` in
 
124
        /dev/tty[0-9]*|/dev/vc/[0-9]*|/dev/console)
 
125
            ;;
 
126
        *)
 
127
            if [ "$VERBOSE_OUTPUT" = yes ]; then
 
128
                echo We are not on the Linux console, exiting.
 
129
            fi
 
130
            exit 0 
 
131
            ;;
 
132
    esac
 
133
fi
128
134
 
129
135
#-----------------------#
130
136
#       OUTPUT          #