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
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
--- /dev/null
+#!/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
/* 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. */
/* 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;
}
/* 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();
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);
}
}
}
fclose(file);
- safe_system("/usr/local/bin/vpn-watch --start");
+ safe_system("/usr/local/bin/vpn-watch &");
return 0;
}