mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 11:56:28 -04:00
Numerous basic improvements to nascent NetBSD support Add popup notifications and expanded notifications to battery-shutdown monitor script Run battery-shutdown from cron rather than as a daemon Add option to install freebsd-update-notify (popup notification for available updates) Changes: https://github.com/outpaddling/desktop-installer/releases
10 lines
405 B
Bash
10 lines
405 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" = "POST-INSTALL" ]; then
|
|
if fgrep -q battery-shutdown.sh /etc/rc.local; 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
|