# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
-#
+#
# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# check root
echo " Type: 'helpcmd' for help with commands"
echo " 'exit' or '^d' to quit"
echo
- PS1="LXCF # " /usr/bin/bash
+ PS1="LXCF # " /bin/bash
exit 0
-else
+else
exec $*
fi
exit 0
-
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
-#
+#
# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# check root
exit 1
fi
if echo $1 | egrep '\.\.' >& /dev/null ; then
- echo "error:" "path" $1 "contains '..'"
+ echo "error:" "path" $1 "contains '..'"
exit 1
fi
}
continue ;;
[Nn]|[Nn][Oo])
exit 1 ;;
- *)
+ *)
exit 1;;
esac
fi
for j in ${FILES}
do
- /usr/bin/rm -rf ${DISTROOT}$PWD/$j
+ /bin/rm -rf ${DISTROOT}$PWD/$j
echo "delete : " $PWD/$j
done;
echo
fi
exit 0
-
if [ -L /opt/lxcf/${LXCNAME} ] ; then
FILEPATH=`ls -l /opt/lxcf/${LXCNAME} | awk '{n=split($0,a," ");print a[n];}'`
echo "erase" $FILEPATH
- /usr/bin/rm -rf $FILEPATH
+ /bin/rm -rf $FILEPATH
fi
- /usr/bin/rm -rf /opt/lxcf/${LXCNAME}
+ /bin/rm -rf /opt/lxcf/${LXCNAME}
echo "erase /etc/lxcf/rsc/"${LXCNAME}
- /usr/bin/rm -rf /etc/lxcf/rsc/${LXCNAME}
+ /bin/rm -rf /etc/lxcf/rsc/${LXCNAME}
/usr/lib/lxcf/lxcf-erase-setup ${LXCNAME}
#!/bin/sh
-# copyright (C) 2013 FUJITSU LIMITED All Rights Reserved
+# copyright (C) 2013-2014 FUJITSU LIMITED All Rights Reserved
# This program 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; version 2
# of the License.
-#
+#
# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# check root
do
case $OPT in
"c" )
- # set CPU
+ # set CPU
echo -n 100000 > ${CPU_LXCFMAINTENANCE}/cpu.cfs_period_us;
echo -n `expr $OPTARG \* 1000` > ${CPU_LXCFMAINTENANCE}/cpu.cfs_quota_us;
;;
"m" )
- #set MEMORY
+ #set MEMORY
echo -n `expr $OPTARG \* 1024 \* 1024` > ${MEM_LXCFMAINTENANCE}/memory.limit_in_bytes;
;;
"i" )
# exec command
if [ $# -eq 0 ] ; then
- PS1="lxcf-maintenance # " /usr/bin/bash
+ PS1="lxcf-maintenance # " /bin/bash
else
. $*
fi
exit $?
-
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2
# of the License.
-#
+#
# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# check root
if [ x${LXCMODEL} = x"joint" ] ; then
# mount dummy /usr
if [ ${LXCMODEL} = "joint" ] ; then
- /usr/bin/mount --bind ${WORKUSR} ${PREFIX}/usr
- trap '/usr/bin/umount -f ${PREFIX}/usr >& /dev/null' 0
+ /bin/mount --bind ${WORKUSR} ${PREFIX}/usr
+ trap '/bin/umount -f ${PREFIX}/usr >& /dev/null' 0
fi
fi
chroot ${PREFIX} /usr/lib/lxcf/lxcf-update2 ${LXCNAME} ${PWD} ${UPDATECMD}
exit $?
-
#!/bin/sh
-# copyright (C) 2013 FUJITSU LIMITED All Rights Reserved
+# copyright (C) 2013-2014 FUJITSU LIMITED All Rights Reserved
# This program 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; version 2
# of the License.
-#
+#
# This program 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 this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301, USA.
# check root
PREFIX=/opt/lxcf/${LXCNAME}
# mount /proc
-/usr/bin/mount -t proc proc /proc
-trap '/usr/sbin/umount -f /proc >& /dev/null' 0
+/bin/mount -t proc proc /proc
+trap '/bin/umount -f /proc >& /dev/null' 0
# cd current-path
mkdir -p ${LXCPWD}
echo "###" $LXCNAME "end:" ${UPDATECMD} "###"
# umount /proc
-/usr/bin/umount -f /proc
+/bin/umount -f /proc
exit ${UPDATE_RESULT}
-