summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-12 22:44:49 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-12 22:44:49 +0200
commit45836282f52e18bb3f00465812c207428a96136a (patch)
treebfff46a68a697461a52d89571cb5929c01e253e1 /lib
parentInitial commit. (diff)
downloadraspberry-45836282f52e18bb3f00465812c207428a96136a.tar.gz
raspberry-45836282f52e18bb3f00465812c207428a96136a.tar.xz
Add existing.HEADmaster
Diffstat (limited to 'lib')
-rw-r--r--lib/facter/raspberry_serial.rb4
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