summaryrefslogtreecommitdiffhomepage
path: root/scripts/libconf.pl
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-23 19:39:08 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-23 19:39:08 +0100
commite549b5686cc1c1bfadf1f78beaf97c17597d9a50 (patch)
treea479f89ea5351aaba73ce99985ad6b65b2af1f9e /scripts/libconf.pl
parent87e9042a7a6c5ab77c507c22e80d56c230748933 (diff)
chore: module and scripts improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'scripts/libconf.pl')
-rw-r--r--scripts/libconf.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/libconf.pl b/scripts/libconf.pl
new file mode 100644
index 0000000..1a1bc7e
--- /dev/null
+++ b/scripts/libconf.pl
@@ -0,0 +1,18 @@
+#!/usr/bin/perl -w
+
+package libconf;
+
+use strict;
+use Cwd;
+
+sub new() {
+
+ if ($ENV{USER} ne "root") {
+ die "You must be root to run this script.\n";
+ }
+
+ system("sh", "git", "submodule", "update", "--init", "--recursive") or die "Git error: $!";
+
+}
+
+"libconf"; \ No newline at end of file