forked from hjokke/chromeos-autofanctrl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
22 lines (22 loc) · 770 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if [ "$1" = "-rebooted" ]; then
{
echo "Installing part 2/2."
echo "Downloading script"
curl -o /etc/init/fanctrl-custom.conf "https://raw.githubusercontent.com/Gareth40342/chromeos-autofanctrl/main/fanctrl-custom.conf"
echo "Starting service"
initctl start fanctrl-custom
initctl reload fanctrl-custom
echo "Installation is complete."
exit 1
}
else
echo "Installing part 1/2."
echo "Removing read-write protection"
crossystem dev_boot_signed_only=0
partition_id=$(sudo /usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification | grep -m1 -o "partitions.*")
/usr/share/vboot/bin/make_dev_ssd.sh --remove_rootfs_verification --$partition_id
echo "Chrome OS will reboot in 5 seconds."
sleep 5
reboot
exit 1
fi