/usr/sbin/firmwaretool is in firmware-tools-cli 2.1.14-0ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 | #!/usr/bin/python
import sys
import os
# these are replaced by autotools when installed.
__VERSION__="2.1.14"
PYTHONDIR="/usr/lib/python2.7/dist-packages"
PKGDATADIR="/usr/share/firmware-tools"
# end build system subs
sys.path.insert(0, PKGDATADIR)
sys.path.insert(0,PYTHONDIR)
try:
if "inventory_firmware" in sys.argv[0]:
sys.argv.append("--inventory")
if "update_firmware" in sys.argv[0]:
sys.argv.append("--update")
if "bootstrap_firmware" in sys.argv[0]:
sys.argv.append("--bootstrap")
import ftmain
ftmain.main(sys.argv[1:])
except KeyboardInterrupt, e:
print >> sys.stderr, "\n\nExiting on user cancel."
sys.exit(1)
|