--- a/cron-script.sh Sat Jan 23 12:52:03 2010 +0000
+++ b/cron-script.sh Sun Jan 24 03:21:06 2010 +0000
@@ -179,13 +179,20 @@
egrep -v '^(Requires|BuildRequires):' SUNWdesktop-cache.spec > SUNWdesktop-cache.spec.tmp.$$
pkgtool build --nonotify --with-l10n ${DEBUG_BUILD} --define "nightly 1" --with-indiana-branding --define 'support_level supported' SUNWdesktop-cache.spec.tmp.$$
rm -f SUNWdesktop-cache.spec.tmp.$$
- su<<EO_SU
- cat<<EOF>/usr/share/desktop-cache/restart_fmri
+
+ # hack the svc script
+ grep -i "OpenSolaris" /etc/release >/dev/null 2>&1
+ if [ $? -eq 0 ]; then
+ printf "1a\n\nexit 0\n.\nw"| pfexec ed -s /usr/share/desktop-cache/restart_fmri
+ else
+ su<<EO_SU
+ cat<<EOF>/usr/share/desktop-cache/restart_fmri
#!/bin/ksh
exit 0
EOF
EO_SU
+ fi
fi
# start the build