summaryrefslogtreecommitdiffstats
path: root/core/modules/swiss/data/opt/openslx/scripts/systemd-load_swiss_keymaps
blob: aadb7a8b4681ffbbdefcaae3490518fb26202cd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/ash
# Script serves as container script for a systemd-call due to the buggyness of several
# loadkeys-implementations <= kbd (Linux keyboard tools) 1.15.3.
# This bug can be detected through failure of the command pipe 'dumpkeys|loadkeys' yielding
# the message "unknown keysym 'compose'.

loadkeys  /opt/openslx/keymaps/qwertz_de_CH-latin1.map		# insert a keymap without compose lines
ERR=$?

# if at this point the second keymap insertion failed we pass the errorlevel to
# systemd - we cannot do more at this point.
exit $ERR