Guardian Paket wurde die fehlende Datei hinzugefuegt
Connectd sollte nun die secrets aendern wenn er auf Backup Profile schwenkt
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@933
ea5c0bd1-69bd-2848-81d8-
4f18e57aeed8
usr/local/bin/guardian_block.sh
usr/local/bin/guardian_unblock.sh
var/ipfire/guardian/guardian.conf
+var/ipfire/guardian/guardian.ignore
case "$1" in
start)
- boot_mesg "Starting ALSA..."
+ boot_mesg "Starting ALSA... Restoring volumes..."
modprobe snd_pcm_oss >/dev/null 2>&1 || failed=1
modprobe snd_mixer_oss >/dev/null 2>&1 || failed=1
(exit ${failed})
evaluate_retval
+ loadproc /usr/sbin/alsactl restore
;;
stop)
boot_mesg "Stopping ALSA... Saving volumes..."
rm -f /var/ipfire/ppp/settings
cp "/var/ipfire/ppp/settings-${BACKUPPROFILE}" /var/ipfire/ppp/settings
msg_log "Switched to backup profile ${BACKUPPROFILE}"
+ # to be shure the right secrets are used
+ eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings-${BACKUPPROFILE})
+ echo "'$USERNAME' * '$PASSWORD'" > /var/ipfire/ppp/secrets
else
msg_log "No backup profile given. Exiting."
exit 0