aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-28 13:30:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-28 13:30:06 +0000
commit383b01e537a70143ebe12b1c1032948590de6f24 (patch)
tree2b5ed0533456295c083c0a3fb1245be91dcc70d0 /main/openrc
parent7735fee115cb7cd6b88a969a3aec5c0c6e959cd1 (diff)
downloadaports-383b01e537a70143ebe12b1c1032948590de6f24.tar.bz2
aports-383b01e537a70143ebe12b1c1032948590de6f24.tar.xz
main/openrc: fix error message when boot/shutdown
Fixes the error message: /lib/rc/sh/runscript.sh: line 1: can't open : no such file
Diffstat (limited to 'main/openrc')
-rw-r--r--main/openrc/APKBUILD4
-rw-r--r--main/openrc/modloop.initd1
2 files changed, 3 insertions, 2 deletions
diff --git a/main/openrc/APKBUILD b/main/openrc/APKBUILD
index 4d12f92dd4..9a91ef059f 100644
--- a/main/openrc/APKBUILD
+++ b/main/openrc/APKBUILD
@@ -2,7 +2,7 @@
pkgname=openrc
pkgver=0.8.3
_ver=${pkgver/_git*/}
-pkgrel=6
+pkgrel=7
pkgdesc="OpenRC manages the services, startup and shutdown of a host"
url="http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git"
arch="all"
@@ -77,6 +77,6 @@ c32e15b0858eef708497e7ee6355a055 hostname.initd
b1e64885f301166df30be3e3cf5338ff hwdrivers.initd
33ca3e558c42cdd17adccbc7807298f7 keymaps.initd
098a1f16812f56fcb56eb6b6f0fa31f6 modules.initd
-c268461826dfa21a781249f5b65017bc modloop.initd
+d10c4fd412faf0b970bb470f493fe718 modloop.initd
af16db0d798392c7c0ed3434e4bad241 networking.initd
c1ec888202d868710b5749f7b217d1e3 modloop.confd"
diff --git a/main/openrc/modloop.initd b/main/openrc/modloop.initd
index 3a69498420..97a45cc19a 100644
--- a/main/openrc/modloop.initd
+++ b/main/openrc/modloop.initd
@@ -54,6 +54,7 @@ find_mnt() {
# initialies: alpine_dev, alpine_mnt, alpine_fs, alpine_mounted
find_media() {
init_KOPT
+ [ -z "$KOPT_alpine_dev" ] && return 0
alpine_mounted=
alpine_dev=${KOPT_alpine_dev%%:*}
alpine_fs=${KOPT_alpine_dev#*:}