A2osX/ADMIN/update.txt
Patrick Kloepfer f7b1fa848d
2021-04-15 16:44:05 -04:00

72 lines
1.8 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NEW
PREFIX
AUTO 4,1
#!/bin/sh
#
# This is the ADM Update script
# It is used to update the current installation to the most
# recent version over the internet using httpget
#
check that ${BOOT}tmp exists and if not create it
check again? if so fail? or RC check the MD/mkdir cmd?
check for existing version file, if not there, set to A2osX/0.94/1111/
check for net loaded? do deep check? or just try to ping to update.a2osx.net?
set netcheck = `ping -1 update.a2osx.net 2>/dev/null`
if [$netcheck = "TCP/IP Not Loaded/Configured."]
echo Network Not Loaded
exit
fi
httpget update.a2osx.net -U latest -O ${BOOT}tmp/latest
compare latest and new
if newer...
httpget update.a2osx.net -U update.${build} -O ${BOOT}tmp/update
unpak
fix stuff up like KMs
remove tmp files
should any of these steps be logged somewhere?
set helppath = ${BOOT}usr/share/help
if ![ -D ${helppath} ]
echo "\nA2osX Help files are not installed"
echo "Please update your A2osX installation\n"
exit
fi
switch $#
case 0
echo "\nNo Help Argument specified"
echo "try \e[7madm help help\e[0m for more command usage\n"
break
case 1
if [ $1 = "list" ] OR [ $1 = "LIST" ]
ls -R ${helppath}
exit
fi
if [ -f $1 ]
set helpfile = ${helppath} + "/" + $1
else
echo "Help is not available for ${1}"
echo "Try \e[7mhelp list\e[0m for a list of help topics\n"
exit
fi
break
case 2
#check first that subdir exists then append full name and check that
break
case 3
#check first that subdir and subdir exists then append full name and check that
break
default
#we assume no more then 3 levels
#so this must be an error or should we just process this as same for case 3 and ignore 4+
end
MAN
TEXT /MAKE/usr/share/adm/update