„piconfig/readonly.sh“ ändern
You disable the default-behavior of variable expansion by quoting the label (with single or double quotes).
This commit is contained in:
parent
f0988781fb
commit
879a969f47
|
@ -22,7 +22,7 @@ tmpfs /var/log tmpfs nosuid,nodev 0 0
|
||||||
tmpfs /var/tmp tmpfs nosuid,nodev 0 0
|
tmpfs /var/tmp tmpfs nosuid,nodev 0 0
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
sudo cat <<EOT >>/etc/bash.bashrc
|
sudo cat <<"EOT" >>/etc/bash.bashrc
|
||||||
# set variable identifying the filesystem you work in (used in the prompt below)
|
# set variable identifying the filesystem you work in (used in the prompt below)
|
||||||
set_bash_prompt(){
|
set_bash_prompt(){
|
||||||
fs_mode=$(mount | sed -n -e "s/^\/dev\/.* on \/ .*(\(r[w|o]\).*/\1/p")
|
fs_mode=$(mount | sed -n -e "s/^\/dev\/.* on \/ .*(\(r[w|o]\).*/\1/p")
|
||||||
|
|
Loading…
Reference in New Issue