]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Enable sending of profile on first connection startup.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Dec 2010 09:52:30 +0000 (10:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Dec 2010 09:52:30 +0000 (10:52 +0100)
config/rootfiles/common/initscripts
src/initscripts/init.d/networking/red.up/99-fireinfo [new file with mode: 0644]

index 90ecf19a98ec61021c3975bb1e70f28bacdf65f5..3bd4142ccc0d32dbd3a75feb18ff4e4cfcee4384 100644 (file)
@@ -86,6 +86,7 @@ etc/rc.d/init.d/networking/red.up/40-ipac
 etc/rc.d/init.d/networking/red.up/50-ipsec
 etc/rc.d/init.d/networking/red.up/50-ovpn
 etc/rc.d/init.d/networking/red.up/99-U-dialctrl.pl
+etc/rc.d/init.d/networking/red.up/99-fireinfo
 etc/rc.d/init.d/networking/red.up/99-pakfire-update
 #etc/rc.d/init.d/nfs-server
 etc/rc.d/init.d/ntp
diff --git a/src/initscripts/init.d/networking/red.up/99-fireinfo b/src/initscripts/init.d/networking/red.up/99-fireinfo
new file mode 100644 (file)
index 0000000..089affc
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Send the fireinfo profile after first boot (if enabled)
+
+INDICATION="/var/run/fireinfo"
+
+if [ ! -e "${INDICATION}" ]; then
+       /usr/bin/sendprofile >/dev/null 2>&1
+
+       touch ${INDICATION}
+fi
+
+exit 0