diff options
author | Christian Heim <phreak@gentoo.org> | 2006-06-05 19:46:54 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2006-06-05 19:46:54 +0000 |
commit | ae0bbf3ae39e23600345b42edfe2ac1babcb4dc0 (patch) | |
tree | a7b020f26114e96c9949a4a4cb38f1f9d77ebd8c /sbin | |
parent | Merging r2046 (diff) | |
download | baselayout-vserver-ae0bbf3ae39e23600345b42edfe2ac1babcb4dc0.tar.gz baselayout-vserver-ae0bbf3ae39e23600345b42edfe2ac1babcb4dc0.tar.bz2 baselayout-vserver-ae0bbf3ae39e23600345b42edfe2ac1babcb4dc0.zip |
Merging r2079
svn path=/baselayout-vserver/trunk/; revision=372
Diffstat (limited to 'sbin')
-rwxr-xr-x | sbin/depscan.sh | 8 | ||||
-rwxr-xr-x | sbin/rc | 6 | ||||
-rwxr-xr-x | sbin/rc-update | 2 |
3 files changed, 11 insertions, 5 deletions
diff --git a/sbin/depscan.sh b/sbin/depscan.sh index d0cff4a..7ca6fe2 100755 --- a/sbin/depscan.sh +++ b/sbin/depscan.sh @@ -89,13 +89,17 @@ if ! ${update} ; then fi touch "${mtime_test}" - for config in /etc/conf.d /etc/init.d /etc/rc.conf + for config in /etc/conf.d/* /etc/init.d/* /etc/rc.conf do ! ${update} \ && is_older_than "${mysvcdir}/depcache" "${config}" \ && update=true - is_older_than "${mtime_test}" "${config}" && clock_screw=1 + if is_older_than "${mtime_test}" "${config}" ; then + # Update the file modification time + touch "${config}" &>/dev/null + clock_screw=1 + fi done rm -f "${mtime_test}" @@ -185,9 +185,11 @@ dep_stop() { if [[ ${SOFTLEVEL} != "reboot" \ && ${SOFTLEVEL} != "shutdown" ]] ; then service_coldplugged "${service}" && return 0 - [[ -z ${OLDSOFTLEVEL} ]] \ + if net_service "${service}" ; then + [[ -z ${OLDSOFTLEVEL} ]] \ || ! in_runlevel "${service}" "${OLDSOFTLEVEL}" \ - && return 0 + && return 0 + fi fi # Should not work for 'use' diff --git a/sbin/rc-update b/sbin/rc-update index 28bf91e..82120cf 100755 --- a/sbin/rc-update +++ b/sbin/rc-update @@ -229,7 +229,7 @@ done if [[ -z ${action} ]] ; then eerror "${argv0}: gimme something to do!" 1>&2 - exit 1 + usage 1 fi [[ ${check_root} -eq 1 ]] && check_is_root |