pi-build/patch/test-patch

29 lines
782 B
Text
Raw Permalink Normal View History

2021-08-05 11:45:47 -05:00
#!/bin/bash
2021-08-05 17:31:00 -05:00
#This test-patch script should serve as a
#template for future patch scripts.
#20210805 KM4ACK
2021-08-05 18:46:45 -05:00
#Give this patch a unique name. A good idea is
#to give it the application name that is being
#patched followed by the date. ie FLDIDI20210805
2021-08-05 17:31:00 -05:00
PATCHNAME=test-patch20210805
2021-08-05 18:46:45 -05:00
2021-08-05 17:31:00 -05:00
PATCHFILE=$HOME/.config/patch
2021-08-05 17:36:19 -05:00
touch $PATCHFILE
2021-08-06 08:38:43 -05:00
###############################
#Patch script commands go here#
###############################
2021-08-05 11:48:21 -05:00
clear;echo;echo
2021-08-05 17:31:00 -05:00
echo "This is a test patch"
2021-08-05 18:46:45 -05:00
2021-08-06 08:38:43 -05:00
#############################################
#write patch name to a file so we can #
#look and see if it has been applied before.#
#This is checked by the patch-menu script #
#before running the patch #
#############################################
echo "$PATCHNAME" >> $PATCHFILE