Bashrc.wiki: removed code from dmidecode section. Just read the source

This commit is contained in:
David Thurstenson 2021-06-05 18:21:27 -05:00
parent 231d8a5dbd
commit e5ff970c37
1 changed files with 0 additions and 10 deletions

View File

@ -102,16 +102,6 @@ https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/getdst.bash
I work with Dell machines a lot, and when dealing with hardware problems, it's nice to have the service tag handy. Lucky for me, the service tag is easily retrieveable using `dmidecode(1)`, so I made a function for it.
{{{class="prettyprint"
getdst() {
if [[ "$1" = "-l" ]]; then
printf "http://www.dell.com/support/home/us/en/04/product-support/servicetag/%s/configuration\n" "$(getdst)"
else
sudo dmidecode -s system-serial-number
fi
}
}}}
As an added bonus, the `-l` option will print the url for that product's support page.
----