summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/sshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/sshd b/etc/sshd
index 5a12bca..b845fe5 100755
--- a/etc/sshd
+++ b/etc/sshd
@@ -51,7 +51,7 @@
if($g['platform'] == "nanobsd" and file_exists("/conf/sshd/ssh_host_key")) {
if(!file_exists("/etc/ssh/ssh_host_key.pub")) {
echo "Restoring SSH from /conf/sshd/";
- cp("/conf/sshd/* /etc/ssh/");
+ exec("/conf/sshd/* /etc/ssh/");
}
}
OpenPOWER on IntegriCloud