summaryrefslogtreecommitdiff
path: root/sysutils/desktop-installer/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/desktop-installer/pkg-install')
-rw-r--r--sysutils/desktop-installer/pkg-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysutils/desktop-installer/pkg-install b/sysutils/desktop-installer/pkg-install
index 04988f978824..5a1fd45e38bf 100644
--- a/sysutils/desktop-installer/pkg-install
+++ b/sysutils/desktop-installer/pkg-install
@@ -1,7 +1,7 @@
#!/bin/sh
if [ "$2" = "POST-INSTALL" ]; then
- if fgrep -q battery-shutdown.sh /etc/rc.local; 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