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

hsqs « bin « rootfs « hakchi « mod_hakchi « mods - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 800c45674915e8ed0535e1ae8315f4a8cbb9220a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
source /etc/preinit
script_init

echo "current firmware: $(currentFirmware)"
printSoftwareInfo

firmware="$1"
if [ "$firmware" != "_nand_" ]; then
  firmware="$(echo "$firmware" |  sed -re 's/^\/usr\/share\/games\/(nes\/kachikachi\/)?/\/var\/games\//')"
  firmware="$(readlink -f "$firmware")"
  checkFirmware "$firmware" || exit 1
fi

[ "$cfg_firmware" == "$firmware" ] && exit 0
cfg_firmware="$firmware"
save_config

[ "$(currentFirmware)" == "$firmware" ] && exit 0

echo "changing firmware to: $firmware"
reboot
exit 0