Skip to content

Commit 0d0e3d1

Browse files
committed
linuxcnc script -add hal_bridge loading
if [HAL] HALBRIDGE = hal_bridge is present in INI
1 parent aa4089b commit 0d0e3d1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

scripts/linuxcnc.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,10 @@ EMCSERVER=linuxcncsvr
575575
GetFromIniQuiet HALUI HAL
576576
HALUI=$retval
577577

578+
# 2.7.1 get halbridge info from INI
579+
GetFromIniQuiet HALBRIDGE HAL
580+
HALBRIDGE=$retval
581+
578582
# 2.8. get display information
579583
GetFromIni DISPLAY DISPLAY
580584
EMCDISPLAY=$( (set -- $retval ; echo "$1") )
@@ -872,6 +876,12 @@ if [ -n "$HALUI" ] ; then
872876
$HALCMD loadusr -Wn halui "$HALUI" -ini "$INIFILE"
873877
fi
874878

879+
# run hal bridge program IF requested
880+
if [ -n "$HALBRIDGE" ] ; then
881+
echo "Starting HAL User Interface program: $HALBRIDGE" >> "$PRINT_FILE"
882+
$HALCMD loadusr -Wn bridge $HALBRIDGE
883+
fi
884+
875885
# 4.3.6. execute HALCMD config files (if any)
876886

877887
TWOPASS=$($INIVAR -ini "$INIFILE" -var TWOPASS -sec HAL -num 1 2> /dev/null)

0 commit comments

Comments
 (0)