add_entry()
{
- local entry="$1"
- local dllconfig="$2"
+ local entry="kds_s2000w_net"
- grep --silent "$entry" "$dllconfig" && return 0
- echo "$entry" >> "$dllconfig"
+ grep --silent "$entry" "$DLLCONFIG" && return 0
+ echo "$entry" >> "$DLLCONFIG"
echo "add kds_s2000w_net to ../build/dll.conf"
}
main()
{
DLLCONFIG=${DLLCONFIG:="/etc/sane.d/dll.conf"}
- local ENTRY="kds_s2000w_net"
- find_config "$DLLCONFIG" || return 0
- add_entry "$ENTRY" "$DLLCONFIG"
+ find_config || return 0
+ add_entry
}
main
\ No newline at end of file