summaryrefslogtreecommitdiff
path: root/sh.Linux
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-14 20:09:53 +0000
committerRoy Marples <roy@marples.name>2007-12-14 20:09:53 +0000
commitafdcf1fa158e9833c163068f77e88d21ba0e3225 (patch)
treec170f21fb6be2dc278e2554c4ae7595f1738d1a4 /sh.Linux
parent584cea1f8e0d2aa21f75c273159608d9ee35cda5 (diff)
downloadopenrc-afdcf1fa158e9833c163068f77e88d21ba0e3225.tar.gz
openrc-afdcf1fa158e9833c163068f77e88d21ba0e3225.tar.bz2
openrc-afdcf1fa158e9833c163068f77e88d21ba0e3225.tar.xz
udev requires try function and the modules-update program should take care of any 2.4 vs 2.6 kernel issues. Also add vim instructions to a few files.
Diffstat (limited to 'sh.Linux')
-rwxr-xr-xsh.Linux/init.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/sh.Linux/init.sh b/sh.Linux/init.sh
index ea9e457..eb7659d 100755
--- a/sh.Linux/init.sh
+++ b/sh.Linux/init.sh
@@ -24,10 +24,11 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
-# void single_user()
-#
-# Drop to a shell, remount / ro, and then reboot
-#
+# udev needs this still
+try() {
+ "$@"
+}
+
single_user() {
if [ "${RC_SYS}" = "VPS" ]; then
einfo "Halting"
@@ -99,7 +100,7 @@ mount_svcdir() {
fi
}
-_rc_get_kv_cache=""
+_rc_get_kv_cache=
get_KV() {
[ -z "${_rc_get_kv_cache}" ] \
&& _rc_get_kv_cache="$(uname -r)"