Updated vpn.in (converted to the new c3d format).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Sat, 14 Jan 2023 23:38:42 +0000 (00:38 +0100)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Sat, 14 Jan 2023 23:38:42 +0000 (00:38 +0100)
30 files changed:
sources/vpn.in/c3d/firstboot/scripts/01_setupnetworking.sh [moved from sources/vpn.in/firstboot/01_setupnetworking.sh with 98% similarity]
sources/vpn.in/c3d/firstboot/scripts/02_settimezone.sh [moved from sources/vpn.in/firstboot/02_settimezone.sh with 100% similarity]
sources/vpn.in/c3d/firstboot/scripts/90_setupservices.sh [moved from sources/vpn.in/firstboot/90_setupservices.sh with 100% similarity]
sources/vpn.in/c3d/mode.txt [new file with mode: 0644]
sources/vpn.in/c3d/postinstall/install-data/etc/sysctl.d/01-ipv4.conf [moved from sources/vpn.in/postinstall/install/etc/sysctl.d/01-ipv4.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/akosztolanyi.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/akosztolanyi.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/csgulyas.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/csgulyas.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/cslevai.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/cslevai.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/dvasary.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/dvasary.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/flex.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/flex.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/fritter.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/fritter.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/fschnell.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/fschnell.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/genkeys.sh [new file with mode: 0755]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/keys.txt [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/keys.txt with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/khorvath.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/khorvath.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/kkele.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/kkele.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/kvajda.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/kvajda.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/mszabo.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/mszabo.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/pbognar.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/pbognar.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/qqcs.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/qqcs.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/rrendek.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/rrendek.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/zfelleg.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/setup/zfelleg.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/wgs.conf [moved from sources/vpn.in/postinstall/install/etc/wireguard/wgs.conf with 100% similarity]
sources/vpn.in/c3d/postinstall/scripts/10_setupservices.sh [moved from sources/vpn.in/postinstall/10_setupservices.sh with 71% similarity]
sources/vpn.in/envvars
sources/vpn.in/firstboot/99_cleanup.sh [deleted file]
sources/vpn.in/postinstall/01_setownership.sh [deleted file]
sources/vpn.in/postinstall/02_setpermissions.sh [deleted file]
sources/vpn.in/postinstall/03_installfiles.sh [deleted file]
sources/vpn.in/postinstall/99_cleanup.sh [deleted file]

similarity index 98%
rename from sources/vpn.in/firstboot/01_setupnetworking.sh
rename to sources/vpn.in/c3d/firstboot/scripts/01_setupnetworking.sh
index dcde4ae9c5f436ed8fcaba9f19a1ab38c0b92bd2..826c95a37e2229ccf9f41b3815b09bfab7253814 100755 (executable)
@@ -1,6 +1,9 @@
 #!/bin/sh
 
 
+export PAGER=
+
+
 sleep 1
 systemctl --quiet is-active NetworkManager.service
 NM_RC=$?
diff --git a/sources/vpn.in/c3d/mode.txt b/sources/vpn.in/c3d/mode.txt
new file mode 100644 (file)
index 0000000..3b70d83
--- /dev/null
@@ -0,0 +1,4 @@
+# mode file (relative to /c3d)
+755 firstboot/scripts/*.sh
+755 postinstall/install-data/etc/wireguard/setup/genkeys.sh
+755 postinstall/scripts/*.sh
diff --git a/sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/genkeys.sh b/sources/vpn.in/c3d/postinstall/install-data/etc/wireguard/setup/genkeys.sh
new file mode 100755 (executable)
index 0000000..5b1f41a
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+
+echo
+COUNT=0
+while [ $COUNT -lt 25000000 ]
+do
+    PRIV_KEY=$(wg genkey)
+    PUB_KEY=$(echo $PRIV_KEY | wg pubkey)
+    echo "private: $PRIV_KEY public: $PUB_KEY" >>keys.txt
+    COUNT=$(( $COUNT + 1 ))
+done
+echo
similarity index 71%
rename from sources/vpn.in/postinstall/10_setupservices.sh
rename to sources/vpn.in/c3d/postinstall/scripts/10_setupservices.sh
index da992d8d8eea260902024e1d69111818828c9915..050d4c918e009f8d5bf2c09edaf79dbc679e9595 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 
-systemctl disable wg-quick@wgs
+systemctl disable wg-quick@wgs.service
 systemctl disable NetworkManager-wait-online.service
 
 systemctl disable logrotate.timer
index 75da218610e24513482c4dd15986787082f44a8a..11dab077d146b91e7df23da50ebbd0ec6ef687c4 100644 (file)
@@ -1,5 +1,3 @@
 DISTRIBUTION=Fedora
 DISTRIBUTION_VERSION=37
-ROOT_PACKAGES="hostname initscripts iproute rootfiles systemd-udev"
-BASE_PACKAGES="NetworkManager iputils logrotate rsyslog tar vim-minimal"
 SPEC_PACKAGES="wireguard-tools"
diff --git a/sources/vpn.in/firstboot/99_cleanup.sh b/sources/vpn.in/firstboot/99_cleanup.sh
deleted file mode 100755 (executable)
index b87f2f4..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-
-REAL_PATH=$(dirname $(realpath $0))
-
-echo rm -Rf $REAL_PATH
diff --git a/sources/vpn.in/postinstall/01_setownership.sh b/sources/vpn.in/postinstall/01_setownership.sh
deleted file mode 100755 (executable)
index f2e6b94..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-
-REAL_PATH=$(dirname $(realpath $0))
-SOURCE_PATH=$REAL_PATH/install
-
-chown -R root.root $SOURCE_PATH/*
diff --git a/sources/vpn.in/postinstall/02_setpermissions.sh b/sources/vpn.in/postinstall/02_setpermissions.sh
deleted file mode 100755 (executable)
index 241386a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-
-REAL_PATH=$(dirname $(realpath $0))
-SOURCE_PATH=$REAL_PATH/install
diff --git a/sources/vpn.in/postinstall/03_installfiles.sh b/sources/vpn.in/postinstall/03_installfiles.sh
deleted file mode 100755 (executable)
index e4ee7ff..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-
-REAL_PATH=$(dirname $(realpath $0))
-
-tar --create \
-    --directory=$REAL_PATH \
-    --exclude=.placeholder \
-    --to-stdout \
-    install \
-    | tar --extract \
-          --backup \
-          --directory=/ \
-          --no-overwrite-dir \
-          --strip-components=1 \
-          --suffix=.orig
diff --git a/sources/vpn.in/postinstall/99_cleanup.sh b/sources/vpn.in/postinstall/99_cleanup.sh
deleted file mode 100755 (executable)
index b87f2f4..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-
-REAL_PATH=$(dirname $(realpath $0))
-
-echo rm -Rf $REAL_PATH