Révision 8589c6df
spelling fixes (2nd try)
| plugins/network/netatalk3 | ||
|---|---|---|
| 47 | 47 |
function count_connected_users () {
|
| 48 | 48 |
local afpd_bin_path=$1 |
| 49 | 49 |
afpd_procs=$(ps anx --no-headers -o uid,command |grep -E "\w+\d+*\s${afpd_bin_path}" |wc -l)
|
| 50 |
# one of those processess will be always from root user, so it's not being
|
|
| 50 |
# one of those processes will be always from root user, so it's not being |
|
| 51 | 51 |
# used to externaly connect volumes, therefor being disconsider. |
| 52 | 52 |
echo $(echo "${afpd_procs} - 1" |bc)
|
| 53 | 53 |
} |
| ... | ... | |
| 119 | 119 |
#### Boilerplates #################################################### |
| 120 | 120 |
# Locating AFP related files: |
| 121 | 121 |
# * Binary: Using the first result of "which" command; |
| 122 |
# * Config: Using "afpd" with paremeters to pring configuration file
|
|
| 122 |
# * Config: Using "afpd" with parameters to pring configuration file
|
|
| 123 | 123 |
# location; |
| 124 | 124 |
# |
| 125 | 125 |
|
Formats disponibles : Unified diff