summaryrefslogtreecommitdiffhomepage
path: root/libconf.pl
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-26 08:33:24 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-26 08:33:24 +0100
commit265c46a864839fdc5e836be927c58cfdbb146817 (patch)
treee36f20c9aac6a8e83803e225b0abda4fc449fa22 /libconf.pl
parentfb313badff8a529c082151f92c6c401818186cfc (diff)
chore: scripting organization updates.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'libconf.pl')
-rw-r--r--libconf.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/libconf.pl b/libconf.pl
new file mode 100644
index 0000000..1a1bc7e
--- /dev/null
+++ b/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