diff options
author | Glen Barber <gjb@FreeBSD.org> | 2016-01-20 09:50:54 +0000 |
---|---|---|
committer | Glen Barber <gjb@FreeBSD.org> | 2016-01-20 09:50:54 +0000 |
commit | 59d43d11fe3e3f490ad5fce4d0349e9eeaf8d765 (patch) | |
tree | b62bad40f6761e8b139ebb94b63befbbbfc84604 /etc/rc.d | |
parent | a11378bd93b579413444d7d4d2c102fa77580205 (diff) | |
parent | 7acd784290df33b5ff70f1f3f894ad64e9c25788 (diff) |
Notes
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-x | etc/rc.d/ldconfig | 22 | ||||
-rwxr-xr-x | etc/rc.d/mountcritlocal | 14 |
2 files changed, 29 insertions, 7 deletions
diff --git a/etc/rc.d/ldconfig b/etc/rc.d/ldconfig index 2dbb5b41f063f..08a2237265b31 100755 --- a/etc/rc.d/ldconfig +++ b/etc/rc.d/ldconfig @@ -61,6 +61,28 @@ ldconfig_start() ;; esac + case `sysctl -n hw.machine_arch` in + armv6) + for i in ${ldconfig_localsoft_dirs}; do + if [ -d "${i}" ]; then + _files=`find ${i} -type f` + if [ -n "${_files}" ]; then + ldconfigsoft_paths="${ldconfigsoft_paths} `cat ${_files} | sort -u`" + fi + fi + done + _LDC="" + for i in ${ldconfigsoft_paths}; do + if [ -r "${i}" ]; then + _LDC="${_LDC} ${i}" + fi + done + check_startmsgs && + echo 'Soft Float compatibility ldconfig path:' ${_LDC} + ${ldconfig} -soft -m ${_ins} ${_LDC} + ;; + esac + # Legacy aout support for i386 only case `sysctl -n hw.machine_arch` in i386) diff --git a/etc/rc.d/mountcritlocal b/etc/rc.d/mountcritlocal index 1513ec7397acc..069e3fda48fdb 100755 --- a/etc/rc.d/mountcritlocal +++ b/etc/rc.d/mountcritlocal @@ -36,15 +36,15 @@ mountcritlocal_start() done mount_excludes=${mount_excludes%,} - # Originally, root mount hold had to be released before mounting the root - # filesystem. This delayed the boot, so it was changed to only wait if - # the root device isn't readily available. This can result in this script - # executing before all the devices - such as graid(8) - are available. - # Thus, should the mount fail, we will wait for the root mount hold release - # and retry. + # Originally, root mount hold had to be released before mounting + # the root filesystem. This delayed the boot, so it was changed + # to only wait if the root device isn't readily available. This + # can result in this script executing before all the devices - such + # as graid(8) - are available. Thus, should the mount fail, + # we will wait for the root mount hold release and retry. mount -a -t ${mount_excludes} err=$? - if [ $? -ne 0 ]; then + if [ ${err} -ne 0 ]; then echo echo 'Mounting /etc/fstab filesystems failed,' \ 'will retry after root mount hold release' |