Revision 4e90019b
Added by Scott Ullrich about 16 years ago
etc/sshd | ||
---|---|---|
44 | 44 |
return $size; |
45 | 45 |
} |
46 | 46 |
|
47 |
/* restore ssh data for nanobsd platform */ |
|
48 |
if($g['platform'] == "nanobsd" and file_exists("/config/ssh/ssh_host_key")) { |
|
49 |
if(!file_exists("/etc/ssh/sshd_host_key.pub")) { |
|
50 |
cp("/config/ssh/* /etc/ssh/"); |
|
51 |
} |
|
52 |
} |
|
53 |
|
|
47 | 54 |
/* if any of these files are 0 bytes then they are corrupted. |
48 | 55 |
* remove them |
49 | 56 |
*/ |
... | ... | |
180 | 187 |
echo "done.\n"; |
181 | 188 |
} |
182 | 189 |
|
190 |
// NanoBSD |
|
191 |
if($g['platform'] == "nanobsd") { |
|
192 |
if(!is_dir("/config/sshd")) |
|
193 |
exec("mkdir /config/sshd"); |
|
194 |
exec("cp /etc/ssh/ssh_host* /config/sshd"); |
|
195 |
} |
|
196 |
|
|
183 | 197 |
conf_mount_ro(); |
184 | 198 |
|
185 | 199 |
|
Also available in: Unified diff
Add nanobsd support