version 1.20, 2013/11/30 22:06:31
|
version 1.22, 2014/06/27 08:55:28
|
Line 78 if (open(PIPE,'-|',$checkcmd)) {
|
Line 78 if (open(PIPE,'-|',$checkcmd)) {
|
# chkconfig barfs to stderr if the target isn't set up right. |
# chkconfig barfs to stderr if the target isn't set up right. |
my $checking_bin; |
my $checking_bin; |
my $restartchk; |
my $restartchk; |
if ('<DIST />' eq 'debian5' || '<DIST />' eq 'debian6' || '<DIST />' eq 'ubuntu6' || '<DIST />' eq 'ubuntu8' || '<DIST />' eq 'ubuntu10' || '<DIST />' eq 'ubuntu12') { |
if ('<DIST />' eq 'debian5' || '<DIST />' eq 'debian6' || '<DIST />' eq 'ubuntu6' || '<DIST />' eq 'ubuntu8' || '<DIST />' eq 'ubuntu10' || '<DIST />' eq 'ubuntu12' || '<DIST />' eq 'ubuntu14') { |
$checking_bin = '/usr/sbin/sysv-rc-conf'; |
$checking_bin = '/usr/sbin/sysv-rc-conf'; |
} else { |
} else { |
$checking_bin = '/sbin/chkconfig'; |
$checking_bin = '/sbin/chkconfig'; |