HP vc4825T HP ThinPro Administrator's Guide (HP vc4825T Thin Client) - Page 87

End Of Script, End Of .2do

Page 87 highlights

# Install the snapin via the install_snapin script. SCRIPT install_snapin.sh

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121

# Install the snapin via the install_snapin script. SCRIPT
install_snapin.sh <<< adobe-acrobat.hpk
# END OF .2DO
Pay attention to "PACKAGE_NAME" and "VERSION" entries, as they are both mandatory and very
important to the ezUpdate version control mechanism.
install_snapin.sh and acrobat-acrobat.hpk are stored in the same directory with this .2do file. When
performing update, they are downloaded by the client to the local storage. Then install_snapin.sh is
executed locally, and the real installation is performed.
Here is an example of an install_snapin.sh script:
# This script is downloaded to an HP appliance
# in order to install a hpk snapin.
# This script should work as part of a complete installation
# or as part of an installation to a running system.
#
RAMDIR=/tmp
echo Installing adobe acrobat...
#
# Copy the "snapin.tgz" file to the ramdisk.
/bin/cat - > ${RAMDIR}/snapin.hpk
echo installing ${RAMDIR}/snapin.hpk
IPKFILE="${RAMDIR}/snapin.hpk"
# Install the "snapin.hpk" file
/usr/bin/hpkg -i "${IPKFILE}"
if [ $? -ne 0 ] ; then
echo ERROR - Snapin install failed.
exit 1
if
echo OK
exit 0
# END OF SCRIPT
ENWW
Control Panel
79