version 1.16, 2012/07/24 04:20:50
|
version 1.17, 2012/07/30 01:37:22
|
Line 76 if (open(PIPE,'-|',$checkcmd)) {
|
Line 76 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') { |
if ('<DIST />' eq 'debian5' || '<DIST />' eq 'debian6' || '<DIST />' eq 'ubuntu6' || '<DIST />' eq 'ubuntu8' || '<DIST />' eq 'ubuntu10' || '<DIST />' eq 'ubuntu12') { |
$checking_bin = '/usr/sbin/sysv-rc-conf'; |
$checking_bin = '/usr/sbin/sysv-rc-conf'; |
} else { |
} else { |
$checking_bin = '/sbin/chkconfig'; |
$checking_bin = '/sbin/chkconfig'; |