-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A bit dirty updates to the factory testing scripts v2
- Loading branch information
1 parent
2abe6bb
commit 8bcfcfa
Showing
3 changed files
with
451 additions
and
457 deletions.
There are no files selected for viewing
42 changes: 18 additions & 24 deletions
42
tp2bmc/board/tp2bmc/factory_overlay/upper/etc/init.d/S00nodeson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
#!/bin/sh | ||
|
||
# Turn on the node power as soosn as possible | ||
# to speed up factory testing | ||
|
||
case "$1" in | ||
start|"") | ||
gpioset 1 0=1 | ||
gpioset 1 1=1 | ||
gpioset 1 2=1 | ||
gpioset 1 3=1 | ||
gpioset 1 4=1 | ||
|
||
echo "enabled" > /sys/devices/platform/node1-power/state | ||
echo "enabled" > /sys/devices/platform/node2-power/state | ||
echo "enabled" > /sys/devices/platform/node3-power/state | ||
echo "enabled" > /sys/devices/platform/node4-power/state | ||
;; | ||
*) | ||
echo "Usage: $0 {start}" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
#!/bin/sh | ||
|
||
# Turn on the node power as soosn as possible | ||
# to speed up factory testing | ||
|
||
case "$1" in | ||
start|"") | ||
echo "enabled" > /sys/devices/platform/node1-power/state | ||
echo "enabled" > /sys/devices/platform/node2-power/state | ||
echo "enabled" > /sys/devices/platform/node3-power/state | ||
echo "enabled" > /sys/devices/platform/node4-power/state | ||
;; | ||
*) | ||
echo "Usage: $0 {start}" | ||
exit 1 | ||
;; | ||
esac | ||
|
Oops, something went wrong.