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

init « hakchi « mod_hakchi « mods - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e885e8e0d84bd88ae48026ad5088ff58a07f0af8 (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
25
26
27
28
29
30
31
32
33
34
35
init(){
echo
/bin/busybox --install -s /bin/

local modname="hakchi"
local modpath="/$modname"
local mountpoint="/newroot"
local installpath
local firmwarepath
local rootfs
local preinit
local preinitpath
local gamepath
local temppath="/tmp"

mkdir -p "$temppath"

source "$modpath/config"
source "$modpath/script/base"

if [ -d "$modpath/transfer" ]; then
  source "$modpath/script/transfer"
else
  mount_base
fi

if [ -f "$preinit" ]; then
  source "$preinit"
  preinit
else
  umount_base
fi
}

init