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: ac0ebf1fcb57a8319023c00f4899269ba6dfb8f1 (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=$mountpoint/var/lib/$modname
local firmwarepath=$installpath/firmware
local rootfs=$installpath/rootfs
local preinit=$rootfs/etc/preinit
local preinitpath=$preinit.d
local gamepath=/usr/share/games/nes/kachikachi
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