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: 041654fc4aa0aafb1072f7e461459f9027c36484 (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
#!/bin/sh
source /etc/preinit
script_init

echo "current firmware: $(currentFirmware)"
printSoftwareInfo

firmware="$1"
if [ "$firmware" != "auto" ] && [ "$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
[ "$(currentFirmware)" == "auto" ] && exit 0 #?

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