Last active
August 21, 2018 09:16
-
-
Save DanTheMan827/191199d7135dbcabbcdfd9754bc5197a to your computer and use it in GitHub Desktop.
extrafs.hmod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== ExtraFS Mod === | |
This is a mod for the SNES Classic which will mount an unused nand partition at /var/lib/hakchi/extrafs | |
Do not install this if you have any kind of extra_space mod installed! | |
This partition is 64MB, you can use it however you like |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ext_device="/dev/nande" | |
local ext_path="$installpath/extrafs" | |
mkdir -p $ext_path | |
if ! mount -o rw,nosuid,nodev,noatime "$ext_device" "$ext_path" ; then | |
echo creating fs on $ext_device | |
$rootfs/bin/mkfs.ext2 "$ext_device" || return 1 | |
mount -o rw,nosuid,nodev,noatime "$ext_device" "$ext_path" || return 1 | |
fi | |
copy "$transferpath/p7060_extrafs" "$preinitpath/p7060_extrafs" | |
chmod +x "$preinitpath/p7060_extrafs" | |
return 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ext_device="/dev/nande" | |
local ext_path="$installpath/extrafs" | |
mkdir -p "$ext_path" | |
echo mounting $ext_path | |
mount -o rw,nosuid,nodev,noatime "$ext_device" "$ext_path" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ext_device="/dev/nande" | |
local ext_path="$installpath/extrafs" | |
umount "$ext_path" | |
rm "$preinitpath/p7060_extrafs" | |
rm -rf "$ext_path" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment