File tree Expand file tree Collapse file tree 14 files changed +51
-27
lines changed
rootfs-overlay/usr/local/share/OPKs Expand file tree Collapse file tree 14 files changed +51
-27
lines changed Original file line number Diff line number Diff line change 1+ This is the folder where you can put all your standalone applications opks
Original file line number Diff line number Diff line change 1+ This is the folder where you can put all your emulators opks
Original file line number Diff line number Diff line change 1+ This is the folder where you can put all your standalone games opks
Original file line number Diff line number Diff line change @@ -15,32 +15,53 @@ do_preinst()
1515
1616do_postinst ()
1717{
18+ # ###############
19+ # Fix recovery #
20+ # ###############
1821 notif " 2/5 FIX RECOVERY GPIO MANAGER"
1922 rw
2023 cp -a /tmp/funkey_gpio_management /usr/local/sbin/
2124 chmod +x /usr/local/sbin/funkey_gpio_management
2225 ro
26+
27+ # ################
28+ # Resize Rootfs #
29+ # ################
2330 notif " 3/5 RESIZE ROOT FILESYSTEM^DO NOT TURN OFF THE CONSOLE"
2431 resize2fs ${root_part}
2532 if [ $? -ne 0 ]; then
2633 notif " CANNOT RESIZE ROOT^FILESYSTEM"
2734 exit 1
2835 fi
36+
37+ # ############
38+ # Copy OPKs #
39+ # ############
2940 notif " 4/5 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
30- folder_opks_emulators=/mnt/Emulators
31- mkdir -p " $folder_opks_emulators "
41+
42+ # Mount Rootfs
3243 mkdir -p ${root_mount}
3344 mount -t ext4 ${root_part} ${root_mount}
3445 if [ $? -ne 0 ]; then
3546 notif " CANNOT MOUNT ROOT^FILESYSTEM"
3647 exit 1
3748 fi
38- cp -f ${root_mount} /usr/games/opk/* .opk " $folder_opks_emulators "
49+
50+ # Copy OPKs
51+ shared_partition=/mnt/
52+ mkdir -p " $shared_partition "
53+ cp -r ${root_mount} /usr/local/share/OPKs/* " $shared_partition "
54+
55+ # Unmount Rootfs
3956 umount ${root_mount}
4057 if [ $? -ne 0 ]; then
4158 notif " CANNOT UNMOUNT ROOT^FILESYSTEM"
4259 exit 1
4360 fi
61+
62+ # ####################
63+ # Erase update file #
64+ # ####################
4465 for file in $( ls /mnt/FunKey-* .fwu) ; do
4566 notif " 5/5 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"
4667 rm -f " ${file} "
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ define FCEUX_INSTALL_TARGET_CMDS
4848endef
4949
5050define FCEUX_CREATE_OPK
51- $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/games/opk
52- $(HOST_DIR ) /usr/bin/mksquashfs $(FCEUX_PKGDIR ) /opk/nes $(TARGET_DIR ) /usr/games/opk /nes_fceux_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
51+ $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/local/share/OPKs/Emulators
52+ $(HOST_DIR ) /usr/bin/mksquashfs $(FCEUX_PKGDIR ) /opk/nes $(TARGET_DIR ) /usr/local/share/OPKs/Emulators /nes_fceux_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
5353endef
5454FCEUX_POST_INSTALL_TARGET_HOOKS += FCEUX_CREATE_OPK
5555
Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ define PCSX_REARMED_INSTALL_TARGET_CMDS
4848endef
4949
5050define PCSX_REARMED_CREATE_OPK
51- $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/games/opk
52- $(HOST_DIR ) /usr/bin/mksquashfs $(PCSX_REARMED_PKGDIR ) /opk/ps1 $(TARGET_DIR ) /usr/games/opk /ps1_pcsx_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
51+ $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/local/share/OPKs/Emulators
52+ $(HOST_DIR ) /usr/bin/mksquashfs $(PCSX_REARMED_PKGDIR ) /opk/ps1 $(TARGET_DIR ) /usr/local/share/OPKs/Emulators /ps1_pcsx_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
5353endef
5454PCSX_REARMED_POST_INSTALL_TARGET_HOOKS += PCSX_REARMED_CREATE_OPK
5555
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ define POCKETSNES_INSTALL_TARGET_CMDS
5454endef
5555
5656define POCKETSNES_CREATE_OPK
57- $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/games/opk
58- $(HOST_DIR ) /usr/bin/mksquashfs $(POCKETSNES_PKGDIR ) /opk/snes $(TARGET_DIR ) /usr/games/opk /snes_pocketsnes_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
57+ $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/local/share/OPKs/Emulators
58+ $(HOST_DIR ) /usr/bin/mksquashfs $(POCKETSNES_PKGDIR ) /opk/snes $(TARGET_DIR ) /usr/local/share/OPKs/Emulators /snes_pocketsnes_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
5959endef
6060POCKETSNES_POST_INSTALL_TARGET_HOOKS += POCKETSNES_CREATE_OPK
6161
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ define COMMANDER_INSTALL_CMDS
1717endef
1818
1919define COMMANDER_CREATE_OPK
20- $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/games/opk
20+ $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/local/share/OPKs/Applications
2121 cd $(@D ) ; \
2222 $(HOST_DIR ) /usr/bin/mksquashfs \
2323 opkg/default.funkey-s.desktop \
@@ -33,7 +33,7 @@ define COMMANDER_CREATE_OPK
3333 res/Fiery_Turk.ttf \
3434 res/FreeSans.ttf \
3535 $(TARGET_DIR ) /usr/bin/commander \
36- $(TARGET_DIR ) /usr/games/opk /commander-funkey-s.opk \
36+ $(TARGET_DIR ) /usr/local/share/OPKs/Applications /commander-funkey-s.opk \
3737 -all-root -noappend -no-exports -no-xattrs -noappend; \
3838 rm -rf $(TARGET_DIR ) /usr/bin/commander
3939endef
Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ GNUBOY_CONF_OPTS += --without-fb \
2626GNUBOY_CONF_ENV += SDL_CONFIG="$(STAGING_DIR ) /usr/bin/sdl-config"
2727
2828define GNUBOY_CREATE_OPK
29- $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/games/opk
30- $(HOST_DIR ) /usr/bin/mksquashfs $(GNUBOY_PKGDIR ) /opk/gb $(TARGET_DIR ) /usr/games/opk /gb_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
31- $(HOST_DIR ) /usr/bin/mksquashfs $(GNUBOY_PKGDIR ) /opk/gbc $(TARGET_DIR ) /usr/games/opk /gbc_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
29+ $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/local/share/OPKs/Emulators
30+ $(HOST_DIR ) /usr/bin/mksquashfs $(GNUBOY_PKGDIR ) /opk/gb $(TARGET_DIR ) /usr/local/share/OPKs/Emulators /gb_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
31+ $(HOST_DIR ) /usr/bin/mksquashfs $(GNUBOY_PKGDIR ) /opk/gbc $(TARGET_DIR ) /usr/local/share/OPKs/Emulators /gbc_gnuboy_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
3232endef
3333GNUBOY_POST_INSTALL_TARGET_HOOKS += GNUBOY_CREATE_OPK
3434
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ define GPSP_INSTALL_TARGET_CMDS
4141endef
4242
4343define GPSP_CREATE_OPK
44- $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/games/opk
45- $(HOST_DIR ) /usr/bin/mksquashfs $(GPSP_PKGDIR ) /opk/gba $(TARGET_DIR ) /usr/games/opk /gba_gpsp_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
44+ $(INSTALL ) -d -m 0755 $(TARGET_DIR ) /usr/local/share/OPKs/Emulators
45+ $(HOST_DIR ) /usr/bin/mksquashfs $(GPSP_PKGDIR ) /opk/gba $(TARGET_DIR ) /usr/local/share/OPKs/Emulators /gba_gpsp_funkey-s.opk -all-root -noappend -no-exports -no-xattrs
4646endef
4747GPSP_POST_INSTALL_TARGET_HOOKS += GPSP_CREATE_OPK
4848
You can’t perform that action at this time.
0 commit comments