slinux: Disable bell on created rootfs
So it will be disabled by default in live and vm/* images. This make installer-feature-bell-off unneeded on SL-live. See https://bugzilla.altlinux.org/show_bug.cgi?id=33653.
This commit is contained in:
parent
c18155e614
commit
cffdf0e363
17
features.in/slinux/rootfs/image-scripts.d/60-no-bell
Executable file
17
features.in/slinux/rootfs/image-scripts.d/60-no-bell
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh -efu
|
||||
|
||||
cat >>"/etc/inputrc" <<EOF
|
||||
# do not bell on tab-completion
|
||||
set bell-style none
|
||||
EOF
|
||||
|
||||
if [ -d /etc/X11/xinit.d ]; then
|
||||
cat >/etc/X11/xinit.d/disable-bell <<EOF
|
||||
#!/bin/sh
|
||||
# Generated by script during image creation
|
||||
# Disable bell.
|
||||
xset -b
|
||||
EOF
|
||||
|
||||
chmod +x "/etc/X11/xinit.d/disable-bell" ||:
|
||||
fi
|
Loading…
Reference in New Issue
Block a user