summaryrefslogtreecommitdiff
path: root/recipes/multitap-pad/files/80multitappad
blob: d2b12ea7cc062f98c54485b1e576bfff79e6226d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

CMD=""

if [ "$DISPLAY_CAN_ROTATE" = "1" ]; then
    if [ "$HAVE_KEYBOARD_PORTRAIT" = "1" -a "$HAVE_KEYBOARD_LANDSCAPE" = "0" ]; then
        CMD="multitap-pad -d -o landscape"
    elif [ "$HAVE_KEYBOARD_LANDSCAPE" = "1" -a "$HAVE_KEYBOARD_PORTRAIT" = "0" ]; then
        CMD="multitap-pad -d -o portrait"
    fi
else
    CMD="multitap-pad -d"
fi


# Delay to make sure the window manager is active

if [ "$CMD" ]; then
    (sleep 2 && $CMD) &
fi