Set PATH in local script for security
Change-Id: If1f6163bdd936222e103822ee01d4c9a7e886a72
Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
[[ $1 == "add" ]] || exit 0
[[ $2 ]] || exit 1
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
COMMAND="$1"
KERNEL_VERSION="$2"
BOOT_DIR_ABS="$3"
# You should have received a copy of the GNU Lesser General Public License
# along with systemd; If not, see <http://www.gnu.org/licenses/>.
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
usage()
{
echo "Usage:"