summaryrefslogtreecommitdiffstats
path: root/etc/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/kernel6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.d/kernel b/etc/rc.d/kernel
index ed9e02e..b718f10 100644
--- a/etc/rc.d/kernel
+++ b/etc/rc.d/kernel
@@ -16,8 +16,10 @@ stop_cmd=":"
kernel_start()
{
bootdir=$(dirname $(sysctl -n kern.bootfile))
- if [ ! -e /boot/kernel -o -h /boot/kernel ] ; then
- ln -hfs ${bootdir} /boot/kernel
+ if [ "$bootdir" != /boot/kernel ] ; then
+ if [ ! -e /boot/kernel -o -h /boot/kernel ] ; then
+ ln -hfs ${bootdir} /boot/kernel
+ fi
fi
}
OpenPOWER on IntegriCloud