From 97d0d3af48008f925142cfd6824455ad15bd7beb Mon Sep 17 00:00:00 2001 From: "Xu, Shunxuan" Date: Tue, 6 Nov 2018 11:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BD=E7=BD=91=E5=AE=9A?= =?UTF-8?q?=E5=88=B6=E9=BB=98=E8=AE=A4=E5=AE=89=E8=A3=85=E8=BF=9B=E6=9C=89?= =?UTF-8?q?root=EF=BC=8C=E6=B7=BB=E5=8A=A040=E9=80=89=E9=A1=B9=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit new file: install_shell/kdesktoprc new file: install_shell/set_default_root.sh modified: setup.sh Signed-off-by: Xu, Shunxuan --- install_shell/kdesktoprc | 4 ++++ install_shell/set_default_root.sh | 6 ++++++ setup.sh | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 install_shell/kdesktoprc create mode 100755 install_shell/set_default_root.sh diff --git a/install_shell/kdesktoprc b/install_shell/kdesktoprc new file mode 100644 index 0000000..48f4a92 --- /dev/null +++ b/install_shell/kdesktoprc @@ -0,0 +1,4 @@ +[Version] +KDEVersionMajor=3 +KDEVersionMinor=5 +KDEVersionRelease=10 diff --git a/install_shell/set_default_root.sh b/install_shell/set_default_root.sh new file mode 100755 index 0000000..3f7bf94 --- /dev/null +++ b/install_shell/set_default_root.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +sed 's/^GRUB_DEFAULT=1/GRUB_DEFAULT=0/g' /etc/default/grub > /etc/default/grub.bak +mv /etc/default/grub.bak /etc/default/grub +sed 's/^set\ default="1"/set\ default="0"/g' /boot/grub/grub.cfg > /boot/grub/grub.cfg.bak +mv /boot/grub/grub.cfg.bak /boot/grub/grub.cfg diff --git a/setup.sh b/setup.sh index 3c218bd..4852e4b 100755 --- a/setup.sh +++ b/setup.sh @@ -50,10 +50,12 @@ echo "====Set tcsh encode to gb18030..." ./other.sh $1 $2 $3 echo "===Set other===" +./set_default_root.sh +echo "===Set default with-root===" cd cgroup-d5000-install ./set_libcgroup.sh $1 echo "===Set cgroup===" -echo "=======Finish========" \ No newline at end of file +echo "=======Finish========"