kopia lustrzana https://github.com/km4ack/pi-build
add hamrs fix #264
rodzic
84a2d816ac
commit
127fdf09e7
|
|
@ -630,15 +630,21 @@ EOF
|
|||
# HAMRS
|
||||
##################################
|
||||
HAMRS() {
|
||||
#currently only a placeholder HAMRS install https://www.hamrs.app/
|
||||
cd ${HOME}/Downloads
|
||||
DL=$(curl https://www.hamrs.app | grep armv7 | sed 's/^.*href="//;s/">//')
|
||||
wget ${DL}
|
||||
HAMRS=$(ls | grep hamrs)
|
||||
mv ${HAMRS} hamrs
|
||||
chmod +x hamrs
|
||||
sudo mv hamrs /usr/local/bin/
|
||||
|
||||
#create menu item and download icon
|
||||
cat >${HOME}/Downloads/hamrs.desktop <<EOF
|
||||
[Desktop Entry]
|
||||
Name=HAMRS
|
||||
Comment=POTA Logging Software
|
||||
Exec=/home/pi/bin/hamrs
|
||||
Icon=/home/pi/Pictures/hamrs-logo.png
|
||||
Exec=/usr/local/bin/hamrs
|
||||
Icon=/usr/share/pixmaps/hamrs-logo.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=HamRadio
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue