]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/system/fireinfo
2 ########################################################################
3 # Begin $rc_base/init.d/fireinfo
5 # Description : Fireinfo profile generator
7 # Authors : IPFire Team
9 # Notes : This script saves the fireinfo profile to a file which
10 # is needed to show that information on the webinterface.
11 # No data is sent to the server.
13 ########################################################################
20 mkdir
-p /var
/ipfire
/fireinfo
2>/dev
/null
22 # Generate Pakfire uuid if not present
23 if [ ! -e /opt
/pakfire
/db
/uuid
]; then
24 uuidgen
> /opt
/pakfire
/db
/uuid
27 sendprofile
--public-id > /var
/ipfire
/fireinfo
/public_id
28 sendprofile
--dump > /var
/ipfire
/fireinfo
/profile
32 echo "Usage: ${0} {start}"
37 # End $rc_base/init.d/fireinfo