Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F49450669
check-kernel.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
340 B
Referenced Files
None
Subscribers
None
check-kernel.sh
View Options
#!/bin/sh
set
-e
set
-u
PATH
=
/bin:/usr/bin:/sbin
which
freebsd-version
>
/dev/null
||
exit
3
VERSION_INSTALLED
=
$(
freebsd-version
-k
)
VERSION_RUNNING
=
$(
freebsd-version
-r
)
if
[
"
$VERSION_INSTALLED
"
!
=
"
$VERSION_RUNNING
"
]
;
then
echo
"Reboot is needed for kernel upgrade
$VERSION_RUNNING
to
$VERSION_INSTALLED
"
exit
1
fi
exit
0
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Mon, Sep 14, 08:47 (22 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4034216
Default Alt Text
check-kernel.sh (340 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment