Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mods/mod_hakchi/hakchi/script/install')
-rw-r--r--mods/mod_hakchi/hakchi/script/install22
1 files changed, 16 insertions, 6 deletions
diff --git a/mods/mod_hakchi/hakchi/script/install b/mods/mod_hakchi/hakchi/script/install
index 9ca6806e..f5fb048c 100644
--- a/mods/mod_hakchi/hakchi/script/install
+++ b/mods/mod_hakchi/hakchi/script/install
@@ -6,19 +6,29 @@ mod_uninstall(){
}
mod_repair(){
- mod_repair_etc full
+ local bin="$temppath/bin"
+ rm -rf "$bin"
+ mkdir -p "$bin"
+ copy "$mountpoint/bin/" "$bin/"
+ copy "/bin/" "$bin/"
+ copy "$modpath/rootfs/bin/" "$bin/"
+ copy "/sbin/cryptsetup" "$bin/cryptsetup"
+ copy "$bin/" "$modpath/rootfs/bin/"
+ rm -rf "$bin"
+
+ copy "/key-file" "$modpath/rootfs/etc/key-file"
+ chown -R 0:0 "$modpath/"
cd "$modpath/rootfs/bin" && chmod 755 *
cd "$modpath/rootfs/etc/init.d" && chmod 755 *
- cd /
- copy "/bin/" "$rootfs/bin/"
- copy "/sbin/cryptsetup" "$rootfs/bin/cryptsetup"
+ rm -f "$modpath/rootfs/etc/preinit.d/p0000_config"
copy "$modpath/rootfs/" "$rootfs/"
+
+ mod_repair_etc full
+ cd /
}
mod_install(){
echo "installing $modname..."
rm -rf "$rootfs"
- restore "/bin/"
- restore "/etc/"
mod_repair
}