Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#5846 closed defect (fixed)

olpc-netstatus gives "command not found"

Reported by: chihyu Owned by: bernie
Priority: high Milestone:
Component: security Version:
Keywords: Cc: yani
Blocked By: Blocking:
Deployments affected: Action Needed:
Verified: no

Description

Build: Joyride 1489

  • machine is connected to mesh network (school server)
  • Hit ctrl-alt-mesh
  • login as olpc
  • run olpc-netstatus, see the following:
/usr/bin/olpc-netstatus: line 47: ifconfig: command not found 
/usr/bin/olpc-netstatus: line 55: ifconfig: command not found 
/usr/bin/olpc-netstatus: line 117: iwconfig: command not found 
/usr/bin/olpc-netstatus: line 37: iwconfig: command not found 
/usr/bin/olpc-netstatus: line 37: iwconfig: command not found

Attachments (1)

olpc-netstatus.new (3.6 KB) - added by wad 7 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 7 years ago by kimquirk

  • Cc yani added
  • Priority changed from normal to high

comment:2 Changed 7 years ago by cjb

The olpc user doesn't have /sbin or /usr/sbin in its path. The olpc-netstatus script should be changed to include those paths.

Changed 7 years ago by wad

comment:3 Changed 7 years ago by wad

I attached a version of olpc-netstatus which fixes most of the problems introduced by moving to joyride. There are still a number of places where this script uses relative position in a command output --- which will break over time!

Another problem was the use of msh0_rename instead of msh0 in joyride. This smells like a hack.

comment:4 Changed 7 years ago by mstone

  • Owner changed from mstone to bernie

Reassigning to bernie, since olpc-netstatus is provided by olpc-utils.

comment:5 Changed 7 years ago by dsd

This problem does not occur on joyride-1520 because /sbin and /usr/sbin are now in the olpc user's default path.

The bug does exist in update1-674.

comment:6 Changed 7 years ago by bernie

Should be fixed in update.1 once we import latest olpc-utils for #5033.

comment:7 Changed 7 years ago by bernie

  • Resolution set to fixed
  • Status changed from new to closed

Oh, dgilmore just did it in update.1-677. Closing as fixed.

comment:8 Changed 6 years ago by gregorio

  • Milestone Never Assigned deleted

Milestone Never Assigned deleted

Note: See TracTickets for help on using tickets.