blob: 9c9f059a124d5c250fa142f158c338567b41fc7b (
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
|
mod_uninstall(){
echo uninstalling $modname...
rm -rf "$installpath"
echo done.
shutdown
}
mod_repair(){
restore "/etc/clover/"
restore "/etc/issue"
rm -f "$modpath/rootfs/etc/preinit.d/p0000_config"
chown -R 0:0 $modpath/
chmod 755 $modpath/rootfs/bin/*
copy "$modpath/rootfs/" "$rootfs/"
copy "/bin/" "$rootfs/bin/"
copy "/sbin/cryptsetup" "$rootfs/bin/cryptsetup"
# This file required by hakchi2 kernel...
echo hakchi_enabled=y > "$temppath/config"
copy "$temppath/config" "$installpath/"
}
mod_install(){
echo installing $modname...
rm -rf "$rootfs"
restore "/bin/"
restore "/etc/"
restore "$gamepath/"
mod_repair
}
|