Skip to content

Commit

Permalink
Print udev rule
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Aug 21, 2014
1 parent 9226731 commit e4516c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions I-Nex/i-nex/.src/i2c.module
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ Public Sub _inits()
If I2C_BUSES["I2C"][i]["vendid"] = vendor And I2C_BUSES["I2C"][i]["devid"] = device Then
Print "Found: " & I2C_BUSES["I2C"][i]["procid"]
Print "Need modprobe: eeprom " & I2C_BUSES["I2C"][i]["driver"]
Print "#Udev rule for " & I2C_BUSES["I2C"][i]["procid"] & ":"
Print "SUBSYSTEMS==\"pci\", ATTRS{vendor}==\"" & I2C_BUSES["I2C"][i]["vendid"] & "\", ATTRS{device}==\"" & I2C_BUSES["I2C"][i]["devid"] & "\", RUN+=\"/sbin/modprobe " & I2C_BUSES["I2C"][i]["driver"] & "\""
Print "#Put to /lib/udev/rules.d/"
Endif
Next
Next
Expand Down

0 comments on commit e4516c5

Please sign in to comment.