Skip to content

Commit

Permalink
new version system
Browse files Browse the repository at this point in the history
  • Loading branch information
randompersononinternet69 committed Jun 25, 2024
1 parent d0a1e2c commit 1318394
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion boot/grubfm/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ if [ "${grub_cpu}" == "x86_64" -a $EFI = true ]; then set EFI64=true; fi
if [ "${grub_cpu}" == "i386" -a $EFI = true ]; then set EFI32=true; fi
if [ $CPU64 = true -a $MBR = true ]; then set MBR64=true; fi
if [ $CPU32 = true -a $MBR = true ]; then set MBR32=true; fi

export MBR EFI MBR32 MBR64 EFI32 EFI64 CPU32 CPU64
export grub_secureboot=$"Not available"
stat -r -q -s RAM
Expand All @@ -42,6 +41,10 @@ if $CPU32; then echo "32-bit CPU"; fi
if $CPU64; then echo "64-bit CPU"; fi
echo Boot drive: $bootdev
echo RAM: ${RAM} MB
# a random string of text is shown after the dash, for example: "v1.0.20-235ba555-c959-48b4-a26c-7520a0040e2a"
echo -n "Version: v1.0.0a-"
cat (${PREFIX})/ver.txt; fi
echo
export pager=0;
cat --set=modlist ${prefix}/insmod.lst;
for module in ${modlist};
Expand Down
Empty file added boot/grubfm/ver.txt
Empty file.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ clear
echo -n ${RESET}
clear
echo "${CYAN}---Making a copy of /boot to /build---"
cat /proc/sys/kernel/random/uuid >boot/grubfm/ver.txt
cp -r boot build/

cp grub/locale/*.mo build/boot/grubfm/locale/
Expand Down

0 comments on commit 1318394

Please sign in to comment.