mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
* 0.3.2 -> 0.3.3 upgrade script * fix upgrade * integrated image * fix rip-image * no U option on older rsync * permissions and cleanup * fixes * label fs * fix progress reporting * only create rootfs for lite upgrade * shrink image after creating * fix for `blue` partitions
18 lines
405 B
Bash
Executable File
18 lines
405 B
Bash
Executable File
#!/bin/bash
|
|
|
|
function flatline {
|
|
echo -n "0" > /sys/class/pwm/pwmchip0/export
|
|
sleep 0.5
|
|
echo -n "2272727" > /sys/class/pwm/pwmchip0/pwm0/period
|
|
echo -n "1136364" > /sys/class/pwm/pwmchip0/pwm0/duty_cycle
|
|
echo -n "1" > /sys/class/pwm/pwmchip0/pwm0/enable
|
|
sleep 30
|
|
echo -n "0" > /sys/class/pwm/pwmchip0/pwm0/enable
|
|
}
|
|
|
|
initialization.sh
|
|
STATUS=$?
|
|
if [ $STATUS -ne 0 ]; then
|
|
flatline
|
|
exit $STATUS
|
|
fi |