provisioning root passwords and host ssh keys
This commit is contained in:
parent
44faf38625
commit
7d60b8f7b9
|
@ -1,2 +1,4 @@
|
||||||
/tmp/
|
/tmp/
|
||||||
/bin/
|
/bin/
|
||||||
|
specific_config/**/dropbear_*_host_key
|
||||||
|
generic_config/**/etc/shadow
|
||||||
|
|
9
build.sh
9
build.sh
|
@ -6,17 +6,16 @@ podman build \
|
||||||
--build-arg=IB_URL="https://downloads.openwrt.org/releases/${VERSION}/targets/ath79/generic/openwrt-imagebuilder-${VERSION}-ath79-generic.Linux-x86_64.tar.xz" \
|
--build-arg=IB_URL="https://downloads.openwrt.org/releases/${VERSION}/targets/ath79/generic/openwrt-imagebuilder-${VERSION}-ath79-generic.Linux-x86_64.tar.xz" \
|
||||||
-t "openfest-openwrt-ath79:${VERSION}" .
|
-t "openfest-openwrt-ath79:${VERSION}" .
|
||||||
|
|
||||||
for config_file in specific_config/ath79/dlink_dap-2695-a1/*.conf
|
for ap_dir in specific_config/ath79/dlink_dap-2695-a1/*
|
||||||
do
|
do
|
||||||
customization_name="$(basename -s.conf ${config_file})"
|
customization_name="$(basename ${ap_dir})"
|
||||||
tmpdir="tmp/${customization_name}"
|
tmpdir="tmp/${customization_name}"
|
||||||
|
|
||||||
mkdir -p "${tmpdir}"
|
mkdir -p "${tmpdir}"
|
||||||
mkdir -p "tmp/dl"
|
mkdir -p "tmp/dl"
|
||||||
mkdir -p "bin"
|
mkdir -p "bin"
|
||||||
cp -rp generic_config/ath79/dlink_dap-2695-a1/* "${tmpdir}/"
|
cp -rvp generic_config/ath79/dlink_dap-2695-a1/* "${tmpdir}/"
|
||||||
mkdir -p "${tmpdir}/etc/uci-defaults"
|
cp -rvp "${ap_dir}"/* "${tmpdir}/"
|
||||||
cp "${config_file}" "${tmpdir}/etc/uci-defaults/99-$(basename ${config_file})"
|
|
||||||
|
|
||||||
podman run \
|
podman run \
|
||||||
--rm \
|
--rm \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
CACHE_FILE=/usr/lib/check_mk_agent/plugins/wifi_interfaces.cache
|
CACHE_FILE=/tmp/cmk_wifi_interfaces.cache
|
||||||
|
|
||||||
echo "<<<wifi_interfaces:sep(59)>>>" # 59 = ascii semi-colon (;)
|
echo "<<<wifi_interfaces:sep(59)>>>" # 59 = ascii semi-colon (;)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue