}
snmpd_disk_add() {
- local cfg="$1"
- local disk='disk'
-
- config_get partition "$cfg" partition
- [ -n "$partition" ] || return 0
- config_get size "$cfg" size
- [ -n "$size" ] || return 0
- echo "$disk $partition $size" >> $CONFIGFILE
+ local cfg="$1"
+ local disk='disk'
+
+ config_get partition "$cfg" partition
+ [ -n "$partition" ] || return 0
+ config_get size "$cfg" size
+ [ -n "$size" ] || return 0
+ echo "$disk $partition $size" >> $CONFIGFILE
}
snmpd_engineid_add() {