mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more. - Accepts G-code input, drives CNC machines in response. - Active user community. - Several different GUIs available. - Compatible with many popular machine control hardware interfaces. - Supports rigid tapping, cutter compensation, and many other advanced control features. WARNING: This port is simulation-only for now. WWW: http://linuxcnc.org/
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
--- scripts/realtime.in.orig 2016-06-25 02:19:12 UTC
|
|
+++ scripts/realtime.in
|
|
@@ -6,7 +6,7 @@
|
|
|
|
export LANG=C
|
|
|
|
-PIDOF=@PIDOF@
|
|
+HALCMD="halcmd"
|
|
|
|
CheckKernel() {
|
|
case "@KERNEL_VERS@" in
|
|
@@ -104,7 +104,7 @@ CheckConfig(){
|
|
CheckStatus(){
|
|
case $RTPREFIX in
|
|
uspace)
|
|
- if [ -z "$($PIDOF rtapi_app)" ]; then
|
|
+ if [ `$HALCMD -s show comp | wc -l` -eq 2 ]; then
|
|
exit 1
|
|
else
|
|
exit 0
|
|
@@ -187,15 +187,14 @@ Unload(){
|
|
# wait 5 seconds for rtapi_app to die and be reaped by its parent
|
|
START=$SECONDS
|
|
while [ 5 -gt $((SECONDS-START)) ]; do
|
|
- if ! ps -C rtapi_app > /dev/null 2> /dev/null; then
|
|
+ if [ `$HALCMD -s show comp | wc -l` -eq 2 ]; then
|
|
break
|
|
fi
|
|
sleep 0.1
|
|
done
|
|
- if ps -C rtapi_app > /dev/null 2> /dev/null; then
|
|
+ if [ `$HALCMD -s show comp | wc -l` -ne 2 ]; then
|
|
echo "ERROR: rtapi_app failed to die" 1>&2
|
|
fi
|
|
-
|
|
ipcrm -M 0x48414c32 2>/dev/null ;# HAL_KEY
|
|
ipcrm -M 0x90280A48 2>/dev/null ;# RTAPI_KEY
|
|
ipcrm -M 0x48484c34 2>/dev/null ;# UUID_KEY
|