wok-current annotate slitaz-boot-scripts/stuff/fix-openbox-menu-link.patch @ rev 25793

Fix miss condition for openbox symlink menu
author Stanislas Leduc <shann@slitaz.org>
date Wed Oct 08 08:20:35 2025 +0000 (2 weeks ago)
parents 54e4a2dfa8ae
children
rev   line source
shann@25792 1 --- a/etc/init.d/system.sh
shann@25792 2 +++ b/etc/init.d/system.sh
shann@25793 3 @@ -60,6 +60,13 @@
shann@25792 4 echo "$tz" > /etc/TZ
shann@25792 5 fi
shann@25792 6
shann@25792 7 +# Ensure Openbox menu is linked correctly
shann@25793 8 +if [ -f /etc/xdg/openbox/menu.xml ]; then
shann@25792 9 +case "${LANG%%_*}" in
shann@25792 10 + de|fr|it|ru) ln -sf menu.${LANG%%_*}.xml /etc/xdg/openbox/menu.xml ;;
shann@25792 11 +esac
shann@25793 12 +fi
shann@25792 13 +
shann@25792 14 # Activate an eventual swap file or partition
shann@25792 15 if ! grep -q 'noswap' /proc/cmdline; then
shann@25792 16 if blkid | grep -q 'TYPE="swap"'; then