diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-12 22:44:49 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-10-12 22:44:49 +0200 |
commit | 45836282f52e18bb3f00465812c207428a96136a (patch) | |
tree | bfff46a68a697461a52d89571cb5929c01e253e1 /lib | |
parent | Initial commit. (diff) | |
download | raspberry-master.tar.gz raspberry-master.tar.xz |
Diffstat (limited to 'lib')
-rw-r--r-- | lib/facter/raspberry_serial.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/facter/raspberry_serial.rb b/lib/facter/raspberry_serial.rb new file mode 100644 index 0000000..bcf34da --- /dev/null +++ b/lib/facter/raspberry_serial.rb @@ -0,0 +1,4 @@ +Facter.add('serial') do + confine { File.exists? '/usr/local/bin/serial' } + setcode "/usr/local/bin/serial" +end |