From 9f617d128016a2544ee50b5117408c4a3ec8af25 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Wed, 30 Jun 2021 22:38:15 +0200 Subject: [PATCH] sPKG via WGET fixed; sources and setup --- spkg | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/spkg b/spkg index 1aa2775..042a588 100755 --- a/spkg +++ b/spkg @@ -1,11 +1,12 @@ #!/bin/sh -source="https://git.hippoz.xyz/spkg/repo" +source="https://git.hippoz.xyz/down/repo" tmpdir="/tmp" setup() { - cp ./spkg /usr/bin/spkg - chmod +x /usr/bin/spkg - mkdir /etc/ - mv os-release /etc/ + prefix=$1 + cp ./spkg "${prefix}"/usr/bin/spkg + chmod +x "${perfix}"/usr/bin/spkg + mkdir "${prefix}"/etc/ + mv os-release "${prefix}"/etc/ } removepkg() { pkgname=$1 @@ -63,7 +64,10 @@ version() { } case "${1}" in setup) - setup ;; + case "${2}" in + --root-dir) setup "${3}" ;; + *) setup "/" ;; + esac ;; remove) removepkg "${2}" ;; install)