diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-04 16:03:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-04 16:03:02 +0000 |
commit | d5395a6e589d061de74853cb43e99f0cd7b55c6f (patch) | |
tree | c63eb081487cf79b2fac0641ecd40d1d34841f5d /main/alpine-baselayout/alpine-baselayout.post-install | |
parent | fbdf44f7b99579b6b3d97d2a979d1e4837714ee4 (diff) | |
download | aports-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-install | 2 |
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 |