Created
July 12, 2017 22:35
-
-
Save canuk/0229acce33479bcaf02f965fffdba86e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
echo "Hotfix shutdown_php.c and reboot_php.c files" | |
sed -i.bak 's/usr\/bin/sbin/' ~/smile-pi/setup_files/reboot_php.c | |
sed -i.bak 's/usr\/bin/sbin/' ~/smile-pi/setup_files/shutdown_php.c | |
cd /tmp | |
\cp ~/smile-pi/setup_files/shutdown_php.c /tmp/shutdown_php.c | |
\cp ~/smile-pi/setup_files/reboot_php.c /tmp/reboot_php.c | |
gcc -o shutdown_php shutdown_php.c | |
sudo mv shutdown_php /usr/local/bin/ | |
sudo chown root:root /usr/local/bin/shutdown_php | |
sudo chmod 4755 /usr/local/bin/shutdown_php | |
gcc -o reboot_php reboot_php.c | |
sudo mv reboot_php /usr/local/bin/ | |
sudo chown root:root /usr/local/bin/reboot_php | |
sudo chmod 4755 /usr/local/bin/reboot_php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment