OSDN Git Service

split repo script
authorpaperbenni <paperbenni@gmail.com>
Sun, 23 Feb 2020 15:40:23 +0000 (16:40 +0100)
committerpaperbenni <paperbenni@gmail.com>
Sun, 23 Feb 2020 15:40:23 +0000 (16:40 +0100)
depend.sh
repo.sh [new file with mode: 0644]

index 05a45a5..b69add0 100644 (file)
--- a/depend.sh
+++ b/depend.sh
@@ -26,11 +26,8 @@ ipkg() {
 ipkg wget
 ipkg hwinfo
 
-if ! grep -q 'instantos\.surge\.sh' /etc/pacman.conf; then
-    echo "[instant]" >>/etc/pacman.conf
-    echo "SigLevel = Optional TrustAll" >>/etc/pacman.conf
-    echo "Server = http://instantos.surge.sh" >>/etc/pacman.conf
-fi
+# add the custom repo
+curl -s https://raw.githubusercontent.com/instantOS/instantOS/master/rootinstall.sh | bash
 
 sudo pacman -Syu --noconfirm
 
diff --git a/repo.sh b/repo.sh
new file mode 100644 (file)
index 0000000..63a2b22
--- /dev/null
+++ b/repo.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+echo "adding instantOS repo"
+
+if ! grep -q 'instantos\.surge\.sh' /etc/pacman.conf; then
+    echo "[instant]" >>/etc/pacman.conf
+    echo "SigLevel = Optional TrustAll" >>/etc/pacman.conf
+    echo "Server = http://instantos.surge.sh" >>/etc/pacman.conf
+fi
\ No newline at end of file