git-svn-id: http://svn.calculate.ru/calculate/trunk@1887 c91db197-33c1-4113-bf15-f8a5c547ca64
parent
9ba06a62d2
commit
88c17fd1c5
@ -0,0 +1,12 @@
|
||||
--- alsasound 2009-06-29 14:26:22.000000000 +0400
|
||||
+++ alsasound 2009-06-29 14:36:52.000000000 +0400
|
||||
@@ -136,7 +136,8 @@
|
||||
ebegin "Restoring Mixer Levels"
|
||||
|
||||
if [ ! -r "${alsastatedir}/asound.state" ] ; then
|
||||
- ewarn "No mixer config in ${alsastatedir}/asound.state, you have to unmute your card!"
|
||||
+ einfo "Setting up ALSA Mixer Levels"
|
||||
+ amixer scontrols | sed -nr "/Wave|Master|Front|LFE|Center|Side|Surround|PCM/ s/.*(.*).*/\\1/p" | xargs -I {} amixer -q set "{}" 70% unmute &>/dev/null
|
||||
eend 0
|
||||
return 0
|
||||
fi
|
@ -0,0 +1 @@
|
||||
/etc/init.d/alsasound
|
@ -0,0 +1,14 @@
|
||||
--- sshd 2009-06-29 14:39:29.000000000 +0400
|
||||
+++ sshd 2009-06-29 14:41:51.000000000 +0400
|
||||
@@ -53,6 +53,11 @@
|
||||
[ "${SSHD_CONFDIR}" != "/etc/ssh" ] \
|
||||
&& myopts="${myopts} -f ${SSHD_CONFDIR}/sshd_config"
|
||||
|
||||
+ if grep "root:\$1\$JMvNh5xg\$VnV1DyJdTcwuZ0hp5YiJG0:14349:0:::::" /etc/shadow >/dev/null;
|
||||
+ then
|
||||
+ passwd || return 1
|
||||
+ fi
|
||||
+
|
||||
checkconfig || return 1
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
start-stop-daemon --start --exec "${SSHD_BINARY}" \
|
@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
#-title-#
|
||||
|
||||
#?system=desktop#
|
||||
##-run_opengl-#
|
||||
#system#
|
||||
|
||||
# change /etc/init.d/sshd for pervent starting sshd with default root password
|
||||
sed -r -i '/start\(\)/{:a N;/passwd \|\| return 1/b;/checkconfig/!ba;s/\n\t+checkconfig/\
|
||||
if grep "root:\\\$1\\\$JMvNh5xg\\\$VnV1DyJdTcwuZ0hp5YiJG0:14349:0:::::" \/etc\/shadow >\/dev\/null;\
|
||||
then\
|
||||
echo "Changing root password"\
|
||||
passwd || return 1\
|
||||
fi\
|
||||
\
|
||||
checkconfig/
|
||||
}' /etc/init.d/sshd
|
Loading…
Reference in new issue