From: Michael Tremer Date: Sat, 11 Dec 2010 09:52:30 +0000 (+0100) Subject: Enable sending of profile on first connection startup. X-Git-Tag: v2.9-beta1~5 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=e9ef343f6de2d22519ea5021e184d2eae5437421 Enable sending of profile on first connection startup. --- diff --git a/config/rootfiles/common/initscripts b/config/rootfiles/common/initscripts index 90ecf19a98..3bd4142ccc 100644 --- a/config/rootfiles/common/initscripts +++ b/config/rootfiles/common/initscripts @@ -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 index 0000000000..089affcd43 --- /dev/null +++ b/src/initscripts/init.d/networking/red.up/99-fireinfo @@ -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