Project

General

Profile

Download (499 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2

    
3
FOUND="0"
4

    
5
# Lets parse the xorg.list file, and see what layouts are supported
6
while read line
7
do
8

    
9
  if [ "$FOUND" = "1" -a ! -z "$line" ]
10
  then
11
    echo $line | grep '! ' >/dev/null 2>/dev/null
12
    if [ "$?" = "0" ]
13
    then
14
     exit 0
15
    else 
16
      echo "$line"
17
    fi 
18
  fi 
19

    
20
  if [ "${FOUND}" = "0" ]
21
  then
22
    echo $line | grep '! layout' >/dev/null 2>/dev/null
23
    if [ "$?" = "0" ]
24
    then
25
      FOUND="1"
26
    fi 
27
  fi
28

    
29
done < /usr/local/share/X11/xkb/rules/xorg.lst
30

    
31
exit 0
(18-18/20)