9 lines
228 B
Bash
9 lines
228 B
Bash
|
# Print Dell Service Tag
|
||
|
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
|
||
|
}
|