summarylogtreecommitdiffstats
path: root/bios-lenovo-thinkserver-ts140.install
blob: 2d1673fa7eabb521482067a03531472feb558a10 (plain)
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
_folder='/usr/lib/bios-lenovo-thinkserver-ts140'

pre_remove() {
  rm -f "${_folder}/OLDROM.ROM"
}

post_install() {
  echo 'To upgrade your BIOS'
  echo "  cd '${_folder}'"
  echo '  sudo ./Linux.sh'
  echo
  echo 'Warning: This reboots your server immediately for the BIOS to perform the upgrade.'
  echo 'Do NOT run during production! Stop important services before updating.'
  echo 'In some cases the BIOS halts at a checksum error so this should not be done'
  echo 'without physical access or equivalent to the machine.'
  echo 'Due to many unexplained lockups shortly after BIOS upgrades, power down the system'
  echo 'after the upgrade completes.'
  echo
  echo 'To test compatibility without rebooting try reading the rom:'
  echo "  cd '${_folder}'"
  echo '  sudo ./romtest.sh'
  pre_remove
}

post_upgrade() {
  post_install
}