Jason W. Bacon 613bcfe053 sysutils/desktop-installer: Update to 1.1.1.4
Fix generated xsession file to check for VBoxClient before trying
to run it.  This unbreaks XDM logins on VMs where guest additions
are not installed.  Guest additions do not currently work on 15.0.
2025-09-21 09:18:06 -05:00

11 lines
418 B
Bash

#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
if fgrep -q battery-shutdown.sh /etc/rc.local 2> /dev/null; then
printf "Converting battery-shutdown service to cron job...\n"
sed -i '' -e 's|^/.*battery-shutdown.sh|# &|' /etc/rc.local
mkdir -p ${PKG_PREFIX}/etc/cron.d
cp ${PKG_PREFIX}/share/desktop-installer/battery-shutdown.cron ${PKG_PREFIX}/etc/cron.d/battery-shutdown
fi
fi