forked from OpenPDU/openpdu
first mockup in go
This commit is contained in:
4
dump/etc/local.d/openpdu.start
Normal file
4
dump/etc/local.d/openpdu.start
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/bin/openpdu initboards
|
||||
/usr/bin/openpdu initoutlets
|
||||
30
dump/etc/openpdu/boards.conf
Normal file
30
dump/etc/openpdu/boards.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
[DEFAULT]
|
||||
|
||||
|
||||
# EXAMPLE GPIO BOARD
|
||||
# [board0]
|
||||
# channel0 = 1
|
||||
# channel1 = 2
|
||||
# channel2 = 3
|
||||
# channel3 = 7
|
||||
# channel4 = 8
|
||||
# channel5 = 9
|
||||
# channel6 = 11
|
||||
# channel7 = 12
|
||||
# type = gpio-out
|
||||
# channels = 8
|
||||
|
||||
|
||||
# EXAMPLE I2C BOARD
|
||||
# [board1]
|
||||
# type = i2c-out
|
||||
# address = 0x27
|
||||
# channels = 8
|
||||
# bus = 0
|
||||
|
||||
# EXAMPLE I2C CURRENT BOARD
|
||||
# [board2]
|
||||
# type = i2c-current
|
||||
# address = 0x48
|
||||
# channels = 4
|
||||
# bus = 0
|
||||
31
dump/etc/openpdu/outlets.conf
Normal file
31
dump/etc/openpdu/outlets.conf
Normal file
@@ -0,0 +1,31 @@
|
||||
[DEFAULT]
|
||||
description = Generic outlet
|
||||
startpower = 1
|
||||
|
||||
# [outlet0]
|
||||
# board = 0
|
||||
# channel = 0
|
||||
# description = Router
|
||||
|
||||
# [outlet1]
|
||||
# board = 0
|
||||
# channel = 1
|
||||
# description = NAS
|
||||
|
||||
# [outlet2]
|
||||
# board = 1
|
||||
# channel = 0
|
||||
# description = Switch
|
||||
|
||||
# [outlet3]
|
||||
# board=1
|
||||
# channel=1
|
||||
# currentboard=2
|
||||
# currentboardchannel=1
|
||||
# description = MailServer
|
||||
|
||||
# [outlet4]
|
||||
# board=1
|
||||
# channel=2
|
||||
# description = Extra Fan
|
||||
# startpower = 0
|
||||
Reference in New Issue
Block a user