From 66a8a23f7b15e397e4fe7551303c858b6ec7aacb Mon Sep 17 00:00:00 2001 From: Doron Shoham Date: Mon, 19 May 2008 10:08:48 +0300 Subject: [PATCH] Revert commit 51982c855d7cc214efc45b647ae51bd2817f52ea Merged the auto-startup/shutdown setting from install.pl script to the rpm file of open-iscsi Signed-off-by: Doron Shoham --- install.pl | 22 ---------------------- uninstall.sh | 2 -- 2 files changed, 24 deletions(-) diff --git a/install.pl b/install.pl index 6a8bc5c..92b4eeb 100755 --- a/install.pl +++ b/install.pl @@ -3266,28 +3266,6 @@ sub install_rpm if ($build32 and $packages_info{$name}{'install32'}) { install_rpm_32($name); } - - # Set open-iscsi for auto startup - if ($name eq $packages_info{'open-iscsi-generic'}{'name'}) { - if ($distro eq "SuSE") { - $res = system("/sbin/insserv open-iscsi > /dev/null 2>&1"); - if ($res) { - print RED "Failed to set open-iscsi for auto-startup", RESET "\n"; - exit 1; - } - } elsif ($distro eq "redhat" or $distro eq "redhat5") { - $res = system("/sbin/chkconfig --del iscsi > /dev/null 2>&1"); - if ($res) { - print RED "Failed to set open-iscsi for manual startup", RESET "\n"; - exit 1; - } - $res = system("/sbin/chkconfig --add iscsi > /dev/null 2>&1"); - if ($res) { - print RED "Failed to set open-iscsi for auto-startup", RESET "\n"; - exit 1; - } - } - } } sub print_package_info diff --git a/uninstall.sh b/uninstall.sh index 6c665ab..a491e43 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -122,13 +122,11 @@ uninstall() case ${DISTRIBUTION} in SuSE) if ( $RPM -q ${OPEN_ISCSI_SUSE_NAME} > $NULL 2>&1 ) && ( $RPM --queryformat "[%{VENDOR}]" -q ${OPEN_ISCSI_SUSE_NAME} | grep -i Voltaire > $NULL 2>&1 ); then - ex "/sbin/insserv -r open-iscsi" packs_to_remove="$packs_to_remove ${OPEN_ISCSI_SUSE_NAME}" fi ;; redhat) if ( $RPM -q ${OPEN_ISCSI_REDHAT_NAME} > $NULL 2>&1 ) && ( $RPM --queryformat "[%{VENDOR}]" -q ${OPEN_ISCSI_REDHAT_NAME} | grep -i Voltaire > $NULL 2>&1 ); then - ex "/sbin/chkconfig --del iscsi" packs_to_remove="$packs_to_remove ${OPEN_ISCSI_REDHAT_NAME}" fi ;; -- 2.46.0