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

install « script « hakchi « mod_hakchi « mods - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9ca6806e0b71a9a3b7fbf86f4acf3955708e1cf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mod_uninstall(){
  echo "uninstalling $modname..."
  rm -rf "$installpath"
  echo "done."
  shutdown
}

mod_repair(){
  mod_repair_etc full
  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"
  copy "$modpath/rootfs/" "$rootfs/"
}

mod_install(){
  echo "installing $modname..."
  rm -rf "$rootfs"
  restore "/bin/"
  restore "/etc/"
  mod_repair
}