diff --git a/packages/sysutils/busybox/package.mk b/packages/sysutils/busybox/package.mk index ad9e4ee808..58601890a5 100644 --- a/packages/sysutils/busybox/package.mk +++ b/packages/sysutils/busybox/package.mk @@ -150,6 +150,7 @@ makeinstall_target() { cp $PKG_DIR/scripts/lsb_release $INSTALL/usr/bin/ cp $PKG_DIR/scripts/apt-get $INSTALL/usr/bin/ cp $PKG_DIR/scripts/passwd $INSTALL/usr/bin/ + cp $PKG_DIR/scripts/sudo $INSTALL/usr/bin/ ln -sf /bin/busybox $INSTALL/usr/bin/env #/usr/bin/env is needed for most python scripts cp $PKG_DIR/scripts/pastebinit $INSTALL/usr/bin/ ln -sf pastebinit $INSTALL/usr/bin/paste diff --git a/packages/sysutils/busybox/scripts/sudo b/packages/sysutils/busybox/scripts/sudo new file mode 100755 index 0000000000..82d852068e --- /dev/null +++ b/packages/sysutils/busybox/scripts/sudo @@ -0,0 +1,30 @@ +#!/bin/sh + +################################################################################ +# This file is part of OpenELEC - http://www.openelec.tv +# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv) +# +# OpenELEC is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 2 of the License, or +# (at your option) any later version. +# +# OpenELEC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with OpenELEC. If not, see . +################################################################################ + +message="$message\n There is no working 'sudo'." +message="$message\n " +message="$message\n On debian/ubuntu/all general purpose linux distributions 'sudo'" +message="$message\n allows a permitted user to execute a command as the superuser" +message="$message\n or another user, as specified by the security policy" +message="$message\n " +message="$message\n With OpenELEC you have root access by default, so you dont need 'sudo'" +message="$message\n " + +echo -e $message