From: <abe...@us...> - 2015-12-05 02:54:16
|
Revision: 7372 http://sourceforge.net/p/astlinux/code/7372 Author: abelbeck Date: 2015-12-05 02:54:14 +0000 (Sat, 05 Dec 2015) Log Message: ----------- kernel-reboot, set a working dir for when called via PHP, otherwise shell-init errors are displayed on video consoles, only cosmetic Modified Paths: -------------- branches/1.0/project/astlinux/target_skeleton/sbin/kernel-reboot Modified: branches/1.0/project/astlinux/target_skeleton/sbin/kernel-reboot =================================================================== --- branches/1.0/project/astlinux/target_skeleton/sbin/kernel-reboot 2015-12-05 01:17:16 UTC (rev 7371) +++ branches/1.0/project/astlinux/target_skeleton/sbin/kernel-reboot 2015-12-05 02:54:14 UTC (rev 7372) @@ -162,6 +162,9 @@ do_failure } +# Set a working dir for when called via PHP +cd /root + if [ ! -x /sbin/kexec ]; then echo "You don't have kexec-tools installed - rebooting" reboot This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |