You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-utils-1/install/builder/profile/ISO/calculate/etc/init.d/calculate

46 lines
681 B

#!/sbin/runscript
#-title-#
depend() {
need localmount root fsck modules
before consolefont keymaps dbus
use swap
}
start() {
/usr/calculate/install/calculate -P all
/usr/sbin/env-update
source /etc/profile
/sbin/update-modules
#?system=desktop#
LANG=C /usr/calculate/install/calculate --opengl
#system#
#-run_user-#
# searching in cmdline using cdroot_type
for x in `cat /proc/cmdline`;do
case ${x} in
cdroot_type\=*)
NOEJECT="1"
;;
esac
done
# if found caching image on RAM - eject CD
if [ -f /mnt/livecd.* -a "${NOEJECT}" != "1" ] ||
[ -f /mnt/squash/livecd.* -a "${NOEJECT}" != "1" ];
then
eject
fi
}
#stop() {
#}
#restart() {
#}