Revision | 3d7b46424507ea28076a2c0fd5ad039472208ba6 (tree) |
---|---|
Zeit | 2012-03-03 11:59:20 |
Autor | matsuand <matsuand@user...> |
Commiter | matsuand |
Corrected BLFS/bash_shell_startup_files.sh.
@@ -1,6 +1,6 @@ | ||
1 | 1 | #!/bin/sh |
2 | 2 | |
3 | -sudo cat > /etc/profile << "EOF" | |
3 | +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 | -sudo install --directory --mode=0755 --owner=root --group=root /etc/profile.d | |
78 | +install --directory --mode=0755 --owner=root --group=root /etc/profile.d | |
79 | 79 | |
80 | -sudo cat > /etc/profile.d/dircolors.sh << "EOF" | |
80 | +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 | -sudo cat > /etc/profile.d/extrapaths.sh << "EOF" | |
92 | +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 | -sudo cat > /etc/profile.d/readline.sh << "EOF" | |
111 | +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 | -sudo cat > /etc/profile.d/umask.sh << "EOF" | |
119 | +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 | -sudo cat > /etc/profile.d/X.sh << "EOF" | |
128 | +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 | -sudo cat > /etc/profile.d/i18n.sh << "EOF" | |
137 | +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 | -sudo cat > /etc/bashrc << "EOF" | |
142 | +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 | -sudo cat > /root/.bash_profile << "EOF" | |
179 | +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 | -sudo cat > /root/.bashrc << "EOF" | |
218 | +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 | -sudo cat > /root/.bash_logout << "EOF" | |
246 | +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 @@ sudo cat > /root/.bash_logout << "EOF" | ||
253 | 253 | # End ~/.bash_logout |
254 | 254 | EOF |
255 | 255 | |
256 | -sudo dircolors -p > /etc/dircolors | |
256 | +dircolors -p > /etc/dircolors | |
257 | 257 | |
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 | |
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 | |
263 | 263 |