summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakTermServ
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2005-07-08 15:24:42 +0000
committerStew Benedict <stewb@mandriva.org>2005-07-08 15:24:42 +0000
commit076e4f7baa0eec3bff7b7e862e3f47d878adde20 (patch)
tree555f9fd33af92a6e8f50535bce971b51b95d1c8f /perl-install/standalone/drakTermServ
parent307de6b8e4a0b37bc07449100e73674f3fa65617 (diff)
downloaddrakx-076e4f7baa0eec3bff7b7e862e3f47d878adde20.tar
drakx-076e4f7baa0eec3bff7b7e862e3f47d878adde20.tar.gz
drakx-076e4f7baa0eec3bff7b7e862e3f47d878adde20.tar.bz2
drakx-076e4f7baa0eec3bff7b7e862e3f47d878adde20.tar.xz
drakx-076e4f7baa0eec3bff7b7e862e3f47d878adde20.zip
don't try to manipulate PXE stuff if the directory isn't present
Diffstat (limited to 'perl-install/standalone/drakTermServ')
-rwxr-xr-xperl-install/standalone/drakTermServ6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ
index 11f916f0d..5282ddfbe 100755
--- a/perl-install/standalone/drakTermServ
+++ b/perl-install/standalone/drakTermServ
@@ -846,8 +846,10 @@ sub build_n_update {
run_program::run("$mknbi -v $command") or $in->ask_warn(N("Error"), N("%s failed", $mknbi));
if ($conf{CREATE_PXE}) {
my $pxedir = get_platform_pxe();
- cp_af("/boot/$kernel", $pxedir) if !-f "$pxedir/$kernel";
- link_pxe($kernel, $nic);
+ if (-d $pxedir) {
+ cp_af("/boot/$kernel", $pxedir) if !-f "$pxedir/$kernel";
+ link_pxe($kernel, $nic);
+ }
}
update_list($list_model);
}