Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109633916
D3527.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
913 B
Referenced Files
None
Subscribers
None
D3527.diff
View Options
Index: usr.sbin/freebsd-update/freebsd-update.sh
===================================================================
--- usr.sbin/freebsd-update/freebsd-update.sh
+++ usr.sbin/freebsd-update/freebsd-update.sh
@@ -220,7 +220,9 @@
if [ -e /usr/src/COPYRIGHT ]; then
COMPONENTS="${COMPONENTS} ${C}"
else
- echo "src component not installed, skipped"
+ if [ $CRONRUN -eq 0 ]; then
+ echo "src component not installed, skipped"
+ fi
fi
else
COMPONENTS="${COMPONENTS} ${C}"
@@ -416,6 +418,9 @@
# Run without a TTY
NOTTYOK=0
+
+ # Running from cron
+ CRONRUN=0
}
# Parse the command line
@@ -473,8 +478,12 @@
config_VerboseLevel nostats || usage
;;
+ cron)
+ CRONRUN=1
+ COMMANDS="${COMMANDS} $1"
+ ;;
# Commands
- cron | fetch | upgrade | install | rollback | IDS)
+ fetch | upgrade | install | rollback | IDS)
COMMANDS="${COMMANDS} $1"
;;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 8, 6:40 PM (20 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16530378
Default Alt Text
D3527.diff (913 B)
Attached To
Mode
D3527: Suppress harmless warning if running in 'cron' mode
Attached
Detach File
Event Timeline
Log In to Comment