修訂 | 9cfbc5c87995b7216de3ff5f91a93a2dab5b8e9a (tree) |
---|---|
時間 | 2012-02-25 23:15:06 |
作者 | matsuand <matsuand@user...> |
Commiter | matsuand |
Modified a little.
@@ -3,7 +3,7 @@ | ||
3 | 3 | LFS=/mnt/lfs |
4 | 4 | SRC=$LFS/sources/BLFS |
5 | 5 | DLD=$LFS/download/BLFS |
6 | -WRK=$LFS/work/BLFS | |
6 | +WRK=$LFS/work/LFScripts/BLFS | |
7 | 7 | LOG=$WRK/log |
8 | 8 | |
9 | 9 | BOOTSCRIPTDATE=20120217 |
@@ -29,28 +29,28 @@ fi | ||
29 | 29 | |
30 | 30 | cd $TARGETDIR |
31 | 31 | |
32 | -paco -p $TARGET "\ | |
32 | +sudo paco -p $TARGET "\ | |
33 | 33 | install -m644 bash_completion.sh /etc/profile.d/70-bash_completion.sh" |
34 | 34 | |
35 | -paco -p+ $TARGET "\ | |
35 | +sudo paco -p+ $TARGET "\ | |
36 | 36 | cp -v bash_completion /etc" |
37 | 37 | |
38 | -paco -p+ $TARGET "\ | |
38 | +sudo paco -p+ $TARGET "\ | |
39 | 39 | install -d /etc/bash_completion.d" |
40 | 40 | |
41 | -paco -p+ $TARGET "\ | |
41 | +sudo paco -p+ $TARGET "\ | |
42 | 42 | install -d /usr/share/bash-completion" |
43 | 43 | |
44 | -paco -p+ $TARGET "\ | |
44 | +sudo paco -p+ $TARGET "\ | |
45 | 45 | cp -v contrib/* /usr/share/bash-completion" |
46 | 46 | |
47 | -paco -p+ $TARGET "\ | |
47 | +sudo paco -p+ $TARGET "\ | |
48 | 48 | install -d /usr/share/doc/bash-completion" |
49 | 49 | |
50 | -paco -p+ $TARGET "\ | |
50 | +sudo paco -p+ $TARGET "\ | |
51 | 51 | cp -v README /usr/share/doc/bash-completion" |
52 | 52 | |
53 | -cat >> /etc/bashrc << "EOF" | |
53 | +sudo cat >> /etc/bashrc << "EOF" | |
54 | 54 | # Enable bash completion |
55 | 55 | if [ -f /etc/bash_completion ]; then |
56 | 56 | source /etc/bash_completion |
@@ -1,6 +1,6 @@ | ||
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | -cat > /etc/profile << "EOF" | |
3 | +sudo cat > /etc/profile << "EOF" | |
4 | 4 | # Begin /etc/profile |
5 | 5 | # Written for Beyond Linux From Scratch |
6 | 6 | # by James Robertson <jameswrobertson@earthlink.net> |
@@ -75,9 +75,9 @@ unset pathremove pathprepend pathappend | ||
75 | 75 | # End /etc/profile |
76 | 76 | EOF |
77 | 77 | |
78 | -install --directory --mode=0755 --owner=root --group=root /etc/profile.d | |
78 | +sudo install --directory --mode=0755 --owner=root --group=root /etc/profile.d | |
79 | 79 | |
80 | -cat > /etc/profile.d/dircolors.sh << "EOF" | |
80 | +sudo cat > /etc/profile.d/dircolors.sh << "EOF" | |
81 | 81 | # Setup for /bin/ls to support color, the alias is in /etc/bashrc. |
82 | 82 | if [ -f "/etc/dircolors" ] ; then |
83 | 83 | eval $(dircolors -b /etc/dircolors) |
@@ -89,7 +89,7 @@ fi | ||
89 | 89 | alias ls='ls --color=auto' |
90 | 90 | EOF |
91 | 91 | |
92 | -cat > /etc/profile.d/extrapaths.sh << "EOF" | |
92 | +sudo cat > /etc/profile.d/extrapaths.sh << "EOF" | |
93 | 93 | if [ -d /usr/local/lib/pkgconfig ] ; then |
94 | 94 | pathappend /usr/local/lib/pkgconfig PKG_CONFIG_PATH |
95 | 95 | fi |
@@ -108,7 +108,7 @@ fi | ||
108 | 108 | #fi |
109 | 109 | EOF |
110 | 110 | |
111 | -cat > /etc/profile.d/readline.sh << "EOF" | |
111 | +sudo cat > /etc/profile.d/readline.sh << "EOF" | |
112 | 112 | # Setup the INPUTRC environment variable. |
113 | 113 | if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ] ; then |
114 | 114 | INPUTRC=/etc/inputrc |
@@ -116,7 +116,7 @@ fi | ||
116 | 116 | export INPUTRC |
117 | 117 | EOF |
118 | 118 | |
119 | -cat > /etc/profile.d/umask.sh << "EOF" | |
119 | +sudo cat > /etc/profile.d/umask.sh << "EOF" | |
120 | 120 | # By default we want the umask to get set. |
121 | 121 | if [ "$(id -gn)" = "$(id -un)" -a $EUID -gt 99 ] ; then |
122 | 122 | umask 002 |
@@ -125,7 +125,7 @@ else | ||
125 | 125 | fi |
126 | 126 | EOF |
127 | 127 | |
128 | -cat > /etc/profile.d/X.sh << "EOF" | |
128 | +sudo cat > /etc/profile.d/X.sh << "EOF" | |
129 | 129 | if [ -x /usr/X11/bin/X ]; then |
130 | 130 | pathappend /usr/X11/bin |
131 | 131 | fi |
@@ -134,12 +134,12 @@ if [ -d /usr/X11/lib/pkgconfig ] ; then | ||
134 | 134 | fi |
135 | 135 | EOF |
136 | 136 | |
137 | -cat > /etc/profile.d/i18n.sh << "EOF" | |
137 | +sudo cat > /etc/profile.d/i18n.sh << "EOF" | |
138 | 138 | # Set up i18n variables |
139 | 139 | export LANG=ja_JP.UTF-8 |
140 | 140 | EOF |
141 | 141 | |
142 | -cat > /etc/bashrc << "EOF" | |
142 | +sudo cat > /etc/bashrc << "EOF" | |
143 | 143 | # Begin /etc/bashrc |
144 | 144 | # Written for Beyond Linux From Scratch |
145 | 145 | # by James Robertson <jameswrobertson@earthlink.net> |
@@ -176,7 +176,7 @@ fi | ||
176 | 176 | export LFS=/mnt/lfs |
177 | 177 | EOF |
178 | 178 | |
179 | -cat > ~/.bash_profile << "EOF" | |
179 | +sudo cat > /root/.bash_profile << "EOF" | |
180 | 180 | # Begin ~/.bash_profile |
181 | 181 | # Written for Beyond Linux From Scratch |
182 | 182 | # by James Robertson <jameswrobertson@earthlink.net> |
@@ -215,7 +215,7 @@ unset append | ||
215 | 215 | # End ~/.bash_profile |
216 | 216 | EOF |
217 | 217 | |
218 | -cat > ~/.bashrc << "EOF" | |
218 | +sudo cat > /root/.bashrc << "EOF" | |
219 | 219 | # Begin ~/.bashrc |
220 | 220 | # Written for Beyond Linux From Scratch |
221 | 221 | # by James Robertson <jameswrobertson@earthlink.net> |
@@ -243,7 +243,7 @@ export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \ | ||
243 | 243 | export PKG_CONFIG_PATH=$XORG_PREFIX/lib/pkgconfig |
244 | 244 | EOF |
245 | 245 | |
246 | -cat > ~/.bash_logout << "EOF" | |
246 | +sudo cat > /root/.bash_logout << "EOF" | |
247 | 247 | # Begin ~/.bash_logout |
248 | 248 | # Written for Beyond Linux From Scratch |
249 | 249 | # by James Robertson <jameswrobertson@earthlink.net> |
@@ -253,11 +253,11 @@ cat > ~/.bash_logout << "EOF" | ||
253 | 253 | # End ~/.bash_logout |
254 | 254 | EOF |
255 | 255 | |
256 | -dircolors -p > /etc/dircolors | |
256 | +sudo dircolors -p > /etc/dircolors | |
257 | 257 | |
258 | -mkdir -pv /etc/skel | |
259 | -cp /root/.bashrc /etc/skel | |
260 | -cp /root/.bash_profile /etc/skel | |
261 | -cp /root/.bash_logout /etc/skel | |
262 | -cp /root/.viminfo /etc/skel | |
258 | +sudo mkdir -pv /etc/skel | |
259 | +sudo cp /root/.bashrc /etc/skel | |
260 | +sudo cp /root/.bash_profile /etc/skel | |
261 | +sudo cp /root/.bash_logout /etc/skel | |
262 | +sudo cp /root/.viminfo /etc/skel | |
263 | 263 |