[PC-BSD Commits] r21135 - in pbi/modules/devel/arduino: . scripts

svn at pcbsd.org svn at pcbsd.org
Fri Jan 25 05:09:37 PST 2013


Author: kenmoore
Date: 2013-01-25 13:09:37 +0000 (Fri, 25 Jan 2013)
New Revision: 21135

Modified:
   pbi/modules/devel/arduino/pbi.conf
   pbi/modules/devel/arduino/scripts/post-install.sh
Log:
Fix adding the uarduno kernel module to loader.conf when installing/removing devel/arduino and rebuild



Modified: pbi/modules/devel/arduino/pbi.conf
===================================================================
--- pbi/modules/devel/arduino/pbi.conf	2013-01-25 13:03:34 UTC (rev 21134)
+++ pbi/modules/devel/arduino/pbi.conf	2013-01-25 13:09:37 UTC (rev 21135)
@@ -16,7 +16,7 @@
 # -- Require Root Permissions to Install PBI --
 PBI_REQUIRESROOT="YES"
 # -- Auto-build Configuration Options --
-PBI_BUILDKEY="03"
+PBI_BUILDKEY="04"
 PBI_AB_PRIORITY="00"
 PBI_AB_NOTMPFS="NO"
 

Modified: pbi/modules/devel/arduino/scripts/post-install.sh
===================================================================
--- pbi/modules/devel/arduino/scripts/post-install.sh	2013-01-25 13:03:34 UTC (rev 21134)
+++ pbi/modules/devel/arduino/scripts/post-install.sh	2013-01-25 13:09:37 UTC (rev 21135)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
 #load the additional driver for arduino devices
+ln -s ${PBI_PROGDIRPATH}/modules/uarduno.ko /boot/modules/uarduno.ko
 echo "Loading the uarduno kernel module"
 kldload uarduno
+
+#Now add this driver to loader.conf so it will be loaded on startup
+cp /boot/loader.conf /boot/loader.conf.orig
+cat /boot/loader.conf | grep -v "uarduno_load" > /tmp/loader.conf
+echo 'uarduno_load="YES"' >> /tmp/loader.conf
+mv /tmp/loader.conf /boot/loader.conf



More information about the Commits mailing list