e83955599d
Why I did it To reduce the processing time of rc.local, refactoring s6100 platform initialization. Fixing [warm-upgrade][202012] Slow DELL platform init in rc.local causes lacp-teardown #10150 How I did it On branch 202012-s6100-rclocalChanges to be committed: (use "git restore --staged <file>..." to unstage) modified: ../../../../files/image_config/platform/rc.local modified: ../debian/platform-modules-s6100.install modified: scripts/fast-reboot_plugin modified: scripts/s6100_platform.sh renamed: scripts/s6100_i2c_enumeration.sh -> scripts/s6100_platform_startup.sh renamed: systemd/s6100-i2c-enumerate.service -> systemd/s6100-platform-startup.service
8 lines
212 B
Bash
Executable File
8 lines
212 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -d /sys/devices/platform/SMF.512/hwmon/ ]]; then
|
|
cd /sys/devices/platform/SMF.512/hwmon/*
|
|
echo 0xcc > mb_poweron_reason
|
|
fi
|
|
/usr/local/bin/s6100_platform_startup.sh deinit & > /dev/null
|