]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/cfgroot/general-functions.pl
aws-functions.pl: Drop file and move functions to general-functions.pl
[people/pmueller/ipfire-2.x.git] / config / cfgroot / general-functions.pl
index 4c7cf09a8db394db903970daa156dc6e18d6c1d9..6ddad28d0dbfec849cc66da5c789ed0f080b4170 100644 (file)
@@ -1286,4 +1286,14 @@ sub formatBytes {
        return sprintf("%.2f %s", $bytes, $unit);
 }
 
+# Cloud Stuff
+
+sub running_on_ec2() {
+       if (-e "/var/run/aws-instance-id") {
+               return 1;
+       }
+
+       return 0;
+}
+
 1;