summarylogtreecommitdiffstats
path: root/bios-lenovo-thinkserver-ts140.install
blob: b0a9db89553ca63a0be1fb4319c5601f0bcf0e98 (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
_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!'
  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
  echo 'To test compatibility without rebooting try reading the rom:'
  echo "  cd '${_folder}'"
  echo '  sudo ./romtest.sh'
  pre_remove
}

post_upgrade() {
  post_install
}