/[vps]/baselayout-vserver/trunk/bin/rc-status
Gentoo

Diff of /baselayout-vserver/trunk/bin/rc-status

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 30 Revision 31
88################################################################################ 88################################################################################
89if [[ -z ${runlevel} ]] ; then 89if [[ -z ${runlevel} ]] ; then
90 if [[ -e ${svcdir}/softlevel ]] ; then 90 if [[ -e ${svcdir}/softlevel ]] ; then
91 runlevel=$(<${svcdir}/softlevel) 91 runlevel=$(<${svcdir}/softlevel)
92 else 92 else
93 ewarn "Could not local current runlevel in ${svcdir}/softlevel" 93 ewarn "Could not locate current runlevel in ${svcdir}/softlevel"
94 if [[ -d ${runleveldir}/default ]] ; then 94 if [[ -d ${runleveldir}/default ]] ; then
95 runlevel=default 95 runlevel=default
96 else 96 else
97 eerror "Your installation is probably broken ... please \`emerge baselayout\`" 97 eerror "Your installation is probably broken ... please \`emerge baselayout-vserver\`"
98 exit 1 98 exit 1
99 fi 99 fi
100 ewarn "Assuming current runrevel is '${runlevel}'" 100 ewarn "Assuming current runrevel is '${runlevel}'"
101 fi 101 fi
102fi 102fi

Legend:
Removed from v.30  
changed lines
  Added in v.31

  ViewVC Help
Powered by ViewVC 1.1.20