From c34fb5342a439e59323e34185727f182e52801e2 Mon Sep 17 00:00:00 2001 From: Colin Smith Date: Mon, 21 Mar 2005 04:32:13 +0000 Subject: Remove unnecessary calls to rm - use unlink_if_exists or rmdir_recursive. --- packages/hula.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'packages/hula.xml') diff --git a/packages/hula.xml b/packages/hula.xml index b76ddacb..b945e023 100644 --- a/packages/hula.xml +++ b/packages/hula.xml @@ -47,12 +47,11 @@ config_unlock(); - system("/usr/bin/killall -9 hulamanager"); - system("rm -rf /usr/local/hula"); - system("rm /usr/local/etc/rc.d/hula.sh"); + mwexec("/usr/bin/killall -9 hulamanager"); + rmdir_recursive("/usr/local/hula"); + unlink_if_exists("/usr/local/etc/rc.d/hula.sh"); - system("rm /usr/local/etc/rc.d/hula.sh"); $fout = fopen("/usr/local/etc/rc.d/hula.sh","w"); fwrite($fout, "#!/bin/sh\n\n"); fwrite($fout, "/sbin/mount -t linprocfs linprocfs /proc\n"); -- cgit v1.2.3