}
############
-if [ $# -lt 4 ] ; then
+if [ $# -lt 2 ] ; then
display_help
fi
exit 1
fi
-conf_file=/usr/apps/${pkg_name}/res/${conf_filemane}
+conf_file=/usr/apps/${pkg_name}/res/${conf_filename}
sdb root on
sdb shell mount -o remount rw /
sdb push $2 /tmp
sdb shell "rpm -ivh --force /tmp/$filename"
-sdb shell "sed -i -e 's/\(path=\).*/\1"${3//\//\\/}"/' ${conf_file}"
-sdb shell "sed -i -e 's/\(address=\).*/\1"${4//\//\\/}"/' ${conf_file}"
+if [ -z "$3" ]; then
+ sdb shell "sed -i -e 's/\(path=\).*/\1"${3//\//\\/}"/' ${conf_file}"
+else
+ echo "No argument for Device ID"
+fi
+
+
+if [ -z "$4" ]; then
+ sdb shell "sed -i -e 's/\(address=\).*/\1"${4//\//\\/}"/' ${conf_file}"
+else
+ echo "No argument for Web API URL"
+fi
sdb shell pkg_initdb --ro