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.
11 lines
418 B
Bash
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
|