commit - 0198b57b7982bc5d06019344844f34d18ff7cb90
commit + ee3ed20191f370e547d6dcc0197df89cda4bf58c
blob - ff703b5462b48a29ce68e1a316f888a0f2ece681
blob + b82cf2e11713408b913700dfd6c194ec9bf29184
--- r7
+++ r7
# TODO: WIP
import() {
+ echo >&2 "-> Importing target host: $target"
+ case $(ssh "$1" uname) in OpenBSD) _OpenBSD_import "$1" ;; *)
+ _error "Platform unsupported or host unavailable."
+ return 3
+ ;;
+ esac
+}
+
+_Debian_import() {
+ :
+}
+
+_NetBSD_import() {
+ :
+}
+
+_FreeBSD_import() {
+ :
+}
+
+_OpenBSD_import() {
cd "$R7_WORKDIR" || _fail "Unable to cd to '$R7_WORKDIR'"
target=$1
etc_files_to_import='
httpd.conf
installurl
login.conf
+ usermgt.conf
+ syslog.conf
+ newsyslog.conf
+ locate.rc
+ boot.conf
+ shells
mygate
myname
ntpd.conf
data/postgresql.conf
'
if test -n "$target"; then
- echo >&2 "-> Importing target host: $target"
- case $(ssh "$target" uname) in OpenBSD) : ;; *)
- _error "Platform unsupported or host unavailable."
- return 3
- ;;
- esac
_OpenBSD_import_ssh_authorized_keys
_OpenBSD_import_etc_if_exists
_OpenBSD_import_etc_ssh_if_exists