3bdeaf0793
This PR automatically creates the weston.ini in the postmarketos-base post-install script based on options set in the deviceinfo file for a particular device. This replaces #191. If weston.ini exists, then no modifications are made. (Optional) options supported in this PR for deviceinfo are: deviceinfo_weston_core_modules - defaults to NONE if none specified deviceinfo_weston_core_backend - defaults to 'fbdev-backend.so' if none specified deviceinfo_weston_keymap_rules - keymap rule, found under /usr/share/X11/xkb/rules/ deviceinfo_weston_keymap_model - keymap model
23 lines
576 B
Bash
23 lines
576 B
Bash
#!/bin/sh
|
|
|
|
if [ -e /lib/udev/v4l_id ]; then
|
|
mv /lib/udev/v4l_id /lib/udev/v4l_id_
|
|
echo "WARNING: v4l_id hangs with the current kernel."
|
|
echo "=> Moved it from /lib/udev/v4l_id to /lib/udev/v4l_id_"
|
|
fi
|
|
|
|
|
|
# Run a few weston demos, because the postmarketos-demos program depends
|
|
# on xwayland for now (Alpine's GTK3 isn't configured for Wayland
|
|
# support yet.)
|
|
if [ $(tty) = "/dev/tty1" ]; then
|
|
(
|
|
sleep 3;
|
|
export XDG_RUNTIME_DIR=/tmp/0-runtime-dir
|
|
weston-smoke &
|
|
weston-simple-damage &
|
|
weston-editor &
|
|
weston-terminal --shell=/usr/bin/htop &
|
|
) > /dev/null &
|
|
fi
|
|
|