aboutsummaryrefslogtreecommitdiffstats
path: root/main/alpine-baselayout/alpine-baselayout.post-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-09-04 16:03:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-09-04 16:03:02 +0000
commitd5395a6e589d061de74853cb43e99f0cd7b55c6f (patch)
treec63eb081487cf79b2fac0641ecd40d1d34841f5d /main/alpine-baselayout/alpine-baselayout.post-install
parentfbdf44f7b99579b6b3d97d2a979d1e4837714ee4 (diff)
downloadaports-d5395a6e589d061de74853cb43e99f0cd7b55c6f.tar.bz2
aports-d5395a6e589d061de74853cb43e99f0cd7b55c6f.tar.xz
main/alpine-baselayout: check for /sbin/rc before using it
Diffstat (limited to 'main/alpine-baselayout/alpine-baselayout.post-install')
-rw-r--r--main/alpine-baselayout/alpine-baselayout.post-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/alpine-baselayout/alpine-baselayout.post-install b/main/alpine-baselayout/alpine-baselayout.post-install
index 79050e5ca7..1f675d1803 100644
--- a/main/alpine-baselayout/alpine-baselayout.post-install
+++ b/main/alpine-baselayout/alpine-baselayout.post-install
@@ -21,7 +21,7 @@ __EOF__
}
# create compat start/stop scripts for vserver guests
-if [ "$( /sbin/rc --sys )" = "VSERVER" ]; then
+if [ -x /sbin/rc ] && [ "$( /sbin/rc --sys )" = "VSERVER" ]; then
# create rcL and rcK
if ! [ -e /etc/init.d/rcL ]; then
create_vserver_startstop > /etc/init.d/rcL