Created
October 17, 2016 03:25
-
-
Save fincham/84bf1c7c9958a4b4c8480cc6dfb9b432 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facter.add('is_soekris') do | |
setcode do | |
Facter::Core::Execution.execute("dd if=/dev/mem bs=64k skip=15 count=1 | grep -q -a 'Soekris Engineering' && echo true || echo false") == "true" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment