From 1655f88deee13024c160c371d9ca79de273ad98c Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 25 Aug 2015 10:06:33 +0200 Subject: Remove useless remount calls These are dealt with by install_package() and uninstall_package() from pkg-utils.inc. --- config/tftp2/tftp.inc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'config/tftp2') diff --git a/config/tftp2/tftp.inc b/config/tftp2/tftp.inc index a2b7d1e3..67054619 100644 --- a/config/tftp2/tftp.inc +++ b/config/tftp2/tftp.inc @@ -45,7 +45,6 @@ function tftp_install_command() { $tftpbackup = "/root/backup/tftp.bak.tgz"; // Create the directories if required - conf_mount_rw(); safe_mkdir("{$tftpdir}", 0777); safe_mkdir("/root/backup/"); @@ -55,14 +54,11 @@ function tftp_install_command() { system("/bin/chmod -R 0744 {$tftpdir}/*"); unset($tftpbackup); } - conf_mount_ro(); } function tftp_deinstall_command() { - conf_mount_rw(); unlink_if_exists("/usr/local/etc/rc.d/tftp.sh"); unlink_if_exists("/tmp/pkg_mgr_tftp.log"); - conf_mount_ro(); } function tftp_generate_rules($type) { -- cgit v1.2.3