mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
Release announcement with changes: https://lists.freedesktop.org/archives/wayland-devel/2022-February/042103.html Upstream has deprecated both weston-launch and fbdev backend, so let's not delay the inevitable and find replacements. Fbdev can be replaced by passing --use-pixman to drm backend; this will bypass the opengl paths and use CPU for rendering. Apply where GL is too slow or unavailable. weston-launch can be replaced by starting weston directly, with a seat management daemon for support. This is provided either by systemd, or on systemd-less systems, by seatd. The sysvinit startup scripts and tests have been rewritten accordingly. Bonus fix: under sysvinit weston now starts under weston user as it should, and not under root. Upstream discussion: https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/725 License-Update: copyright years (From OE-Core rev: 4efc81fc575aea1e12e00de8644a4b853719f8df) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
850 B
850 B
#!/bin/sh
BEGIN INIT INFO
Provides: weston
Required-Start: $local_fs $remote_fs
Required-Stop: $local_fs $remote_fs
Default-Start: 2 3 4 5
Default-Stop: 0 1 6
END INIT INFO
if test -e /etc/default/weston ; then . /etc/default/weston fi
killproc() {
pid=/bin/pidof $1
[ "$pid" != "" ] && kill $pid
}
read CMDLINE < /proc/cmdline for x in $CMDLINE; do case $x in weston=false) echo "Weston disabled" exit 0; ;; esac done
case "$1" in start) . /etc/profile export HOME=ROOTHOME
WESTON_USER=weston weston-start $OPTARGS &
;;
stop) echo "Stopping Weston" killproc weston ;;
restart) $0 stop sleep 1 $0 start ;;
*) echo "usage: $0 { start | stop | restart }" ;; esac
exit 0