Skip to content
  • José Bollo's avatar
    a88ccd21
    Add the command 'test' to smackctl · a88ccd21
    José Bollo authored
    
    
    The command 'test' is similar to the
    command 'status' but instead of displaying
    the status, it returns a status: 0 if smackFS
    is mounted or 1 otherwise.
    
    The intention is to provide a cleaner interface
    for scripting. Instead of writing
    
     if smackctl status | grep -qv ' not '; then ...
    
    the script progreammer can simply write
    
     if smackctl test; then ...
    
    Signed-off-by: default avatarJosé Bollo <jose.bollo@iot.bzh>
    a88ccd21
    Add the command 'test' to smackctl
    José Bollo authored
    
    
    The command 'test' is similar to the
    command 'status' but instead of displaying
    the status, it returns a status: 0 if smackFS
    is mounted or 1 otherwise.
    
    The intention is to provide a cleaner interface
    for scripting. Instead of writing
    
     if smackctl status | grep -qv ' not '; then ...
    
    the script progreammer can simply write
    
     if smackctl test; then ...
    
    Signed-off-by: default avatarJosé Bollo <jose.bollo@iot.bzh>
Loading