]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Ein Alsa-Initscript gebaut, was beim Herunterfahren die Lautstaerke speichert.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Mon, 18 Jun 2007 20:20:21 +0000 (20:20 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Mon, 18 Jun 2007 20:20:21 +0000 (20:20 +0000)
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@636 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/rootfiles/common/misc-progs
config/rootfiles/common/stage2
doc/language_issues.de
doc/language_issues.en
lfs/stage2
src/initscripts/init.d/alsa [new file with mode: 0644]
src/misc-progs/ipsecctrl.c
src/paks/alsa/install.sh
src/paks/alsa/uninstall.sh

index a1fdbea2af0c98728604b309ce52eba1f89e3c8c..fb7acbf75ef8af4855bcfed93f73ad05f0b3d1e3 100644 (file)
@@ -11,7 +11,6 @@ usr/local/bin/outgoingfwctrl
 usr/local/bin/qosctrl
 usr/local/bin/rebuildhosts
 usr/local/bin/redctrl
-usr/local/bin/monitorTraff
 usr/local/bin/pakfire
 usr/local/bin/restartssh
 usr/local/bin/restartsyslogd
index 7bda0914c20823d1bd8e2cd5cc667219bcf0d31d..5213102a1ea5620ee91f21f0529a03330940e524 100644 (file)
@@ -43,6 +43,7 @@ media/floppy
 mnt
 #opt
 #root
+root/ipfire
 #sbin
 #srv
 #sys
index 56217617378fdaf6c77c5da88879f64654e1bd58..9487471b40001d3ba0b4c0ae74f53b015a258516 100644 (file)
@@ -53,6 +53,7 @@ WARNING: translation string unused: backup password
 WARNING: translation string unused: backup sets
 WARNING: translation string unused: backup to floppy
 WARNING: translation string unused: bad characters in
+WARNING: translation string unused: bleeding rules
 WARNING: translation string unused: blue access use hint
 WARNING: translation string unused: blue interface
 WARNING: translation string unused: buffered memory
index 7b48a71f22792624bc051593d93eb0e2003f75fb..de7c39f0d6c8bf39a4cfca04e85a3f3dcc07db06 100644 (file)
@@ -70,6 +70,7 @@ WARNING: translation string unused: backup sets
 WARNING: translation string unused: backup to floppy
 WARNING: translation string unused: bewan adsl pci st
 WARNING: translation string unused: bewan adsl usb
+WARNING: translation string unused: bleeding rules
 WARNING: translation string unused: blue interface
 WARNING: translation string unused: buffered memory
 WARNING: translation string unused: bytes per second
index cd9cc281a4c7cc3e44ff1237a33ebe3205b71bb8..5a838960524b5dc33e5d402bcac904841f332794 100644 (file)
@@ -106,5 +106,8 @@ $(TARGET) :
 
        # Permissions
        chmod 0711 /var/empty
+       
+       # A small hack to include /root to the iso but not all of it's files.
+       touch /root/ipfire
 
        @$(POSTBUILD)
diff --git a/src/initscripts/init.d/alsa b/src/initscripts/init.d/alsa
new file mode 100644 (file)
index 0000000..fe7077a
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Begin $rc_base/init.d/alsa
+
+# Based on sysklogd script from LFS-3.1 and earlier.
+# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org
+# ALSA specific parts by Mark Hymers - markh@linuxfromscratch.org
+# Stores mixer settings in the default location: /etc/asound.state
+
+. /etc/sysconfig/rc
+. $rc_functions
+
+case "$1" in
+       stop)
+               boot_mesg "Stopping ALSA...    Saving volumes..."
+               loadproc /usr/sbin/alsactl store
+               ;;
+
+       *)
+               echo "Usage: $0 stop"
+               exit 1
+               ;;
+esac
+
+# End $rc_base/init.d/alsa
index 299264728aec9bc2913edb38c4eba4b3a8f1a26c..1aa74ccc000ebfc44d3ea50c9afcacd9a7606f67 100644 (file)
@@ -121,7 +121,7 @@ void add_alias_interfaces(char *configtype,
 
        /* Check for CONFIG_TYPE=2 or 3 i.e. RED ethernet present. If not,
        * exit gracefully.  This is not an error... */
-       if (!((strcmp(configtype, "2")==0) || (strcmp(configtype, "3")==0) || (strcmp(configtype, "6")==0) || (strcmp(configtype, "7")==0)))
+       if (!((strcmp(configtype, "1")==0) || (strcmp(configtype, "2")==0) || (strcmp(configtype, "3")==0) || (strcmp(configtype, "4")==0)))
                return;
 
         /* Now check the RED_TYPE - aliases only work with STATIC. */
@@ -286,7 +286,7 @@ int main(int argc, char *argv[]) {
        /* handle operations that doesn't need start the ipsec system */
        if (argc == 2) {
                if (strcmp(argv[1], "D") == 0) {
-                       safe_system("/usr/local/bin/vpn-watch --stop");
+                       safe_system("kill -9 $(cat /var/run/vpn-watch.pid)");
                        ipsec_norules();
                        /* Only shutdown pluto if it really is running */
                        int fd;
@@ -305,7 +305,7 @@ int main(int argc, char *argv[]) {
        }
 
        /* stop the watch script as soon as possible */
-       safe_system("/usr/local/bin/vpn-watch --stop");
+       safe_system("kill -9 $(cat /var/run/vpn-watch.pid)");
 
        /* clear iptables vpn rules */
        ipsec_norules();
@@ -443,7 +443,7 @@ int main(int argc, char *argv[]) {
                safe_system("/usr/sbin/ipsec tncfg --clear >/dev/null");
                safe_system("/etc/rc.d/init.d/ipsec restart >/dev/null");
                add_alias_interfaces(configtype, redtype, if_red, (enable_red+enable_green+enable_orange+enable_blue) >>1 );
-               safe_system("/usr/local/bin/vpn-watch --start");
+               safe_system("/usr/local/bin/vpn-watch &");
                exit(0);
        }
 
@@ -494,6 +494,6 @@ int main(int argc, char *argv[]) {
                }
        }
        fclose(file);
-       safe_system("/usr/local/bin/vpn-watch --start");
+       safe_system("/usr/local/bin/vpn-watch &");
        return 0;
 }
index ace14baf9c3608b672e13cdeff5a230742498788..26356a498e6cccbc9afec645e6bfa5fe87bfbf55 100644 (file)
@@ -1 +1,4 @@
 tar xvfj files.tbz2 -C /
+touch /etc/asound.state
+ln -sf  ../init.d/alsa /etc/rc.d/rc0.d/K35alsa
+ln -sf  ../init.d/alsa /etc/rc.d/rc6.d/K35alsa
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..acb436b73b1d6947f51dae7aec488b6b83393668 100644 (file)
@@ -0,0 +1 @@
+rm -rf /etc/rc.d/rc*.d/*alsa