summaryrefslogtreecommitdiff
path: root/repo/sysconfigs/sysconfigs.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/sysconfigs/sysconfigs.xibuild
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/sysconfigs/sysconfigs.xibuild')
-rw-r--r--repo/sysconfigs/sysconfigs.xibuild26
1 files changed, 24 insertions, 2 deletions
diff --git a/repo/sysconfigs/sysconfigs.xibuild b/repo/sysconfigs/sysconfigs.xibuild
index c3723c1..85f7f28 100644
--- a/repo/sysconfigs/sysconfigs.xibuild
+++ b/repo/sysconfigs/sysconfigs.xibuild
@@ -1,11 +1,13 @@
#!/bin/sh
-MAKEDEPS=""
-DEPS="sh"
+MAKEDEPS="sh"
+DEPS="mksh"
PKG_VER=N/A
DESC="Default system configs for xilinux"
+ADDITIONAL="consolecolor"
+
package () {
mkdir -p $PKG_DEST/etc/
mkdir -p $PKG_DEST/etc/sysconfig
@@ -93,5 +95,25 @@ SUPPORT_URL="https://xi.davidovski.xyz"
BUG_REPORT_URL="https://xi.davidovski.xyz"
LOGO=xilinux-logo
EOF
+ cat > $PKG_DEST/etc/default/useradd << "EOF"
+GROUP=999
+HOME=/home
+INACTIVE=-1
+EXPIRE=
+SHELL=/bin/mksh
+SKEL=/etc/skel
+CREATE_MAIL_SPOOL=yes
+LOG_INIT=yes
+EOF
+
+ mkdir -p $PKG_DEST/etc/init.d
+ install -m755 consolecolor $PKG_DEST/etc/init.d/
+
+ mkdir -p $PKG_DEST/etc/runlevels/boot
+ ln -s /etc/init.d/consolecolor $PKG_DEST/etc/runlevels/boot/consolecolor
+
+ cat > $PKG_DEST/etc/shells << "EOF"
+ /bin/sh
+EOF
}