Commit 3f0f3e78 authored by Claes Sjofors's avatar Claes Sjofors

Command 'source' changed to '.', source didn't work on ubuntu

parent 125bf467
...@@ -101,7 +101,7 @@ void RtMon::stop_ok_cb( void *ctx, void *data) ...@@ -101,7 +101,7 @@ void RtMon::stop_ok_cb( void *ctx, void *data)
void RtMon::activate_reset() void RtMon::activate_reset()
{ {
char cmd[] = "source pwr_stop.sh"; char cmd[] = ". pwr_stop.sh";
system( cmd); system( cmd);
} }
......
...@@ -557,7 +557,7 @@ void pkg_node::fetchFiles( bool distribute) ...@@ -557,7 +557,7 @@ void pkg_node::fetchFiles( bool distribute)
// Execute the pack file // Execute the pack file
char cmd[200]; char cmd[200];
sprintf( cmd, "source %s", pack_fname); sprintf( cmd, ". %s", pack_fname);
system( cmd); system( cmd);
if ( distribute) { if ( distribute) {
...@@ -614,7 +614,7 @@ void pkg_node::copyPackage( char *pkg_name) ...@@ -614,7 +614,7 @@ void pkg_node::copyPackage( char *pkg_name)
// Execute the pack file // Execute the pack file
char cmd[200]; char cmd[200];
sprintf( cmd, "source %s", pack_fname); sprintf( cmd, ". %s", pack_fname);
system( cmd); system( cmd);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment