feat: build input features

This commit is contained in:
zhangsz
2025-03-05 11:13:37 +08:00
parent 7486287e84
commit 1e2b480395
129 changed files with 5044 additions and 0 deletions

10
pkg/ussdgw/DEBIAN/control Executable file
View File

@@ -0,0 +1,10 @@
Package: ussdgw
Version: 2501.22-YYYYMMDD
Section: net
Priority: optional
Architecture: amd64
Essential: no
Depends:
Conflicts: ussdgw
Maintainer: 4GC
Description: 4GC USSD Gateway Software

14
pkg/ussdgw/DEBIAN/postinst Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
test ! -f /usr/local/ussdgw/bin/conf/wxc2_sys.conf && cp -rf /usr/local/ussdgw/bin/conf/default/* /usr/local/ussdgw/bin/conf
test ! -f /usr/local/ussdgw/bin/conf/yx_ussd.conf && cp -rf /usr/local/ussdgw/bin/conf/default/yx_ussd.conf /usr/local/ussdgw/bin/conf
subDir="/usr/local/subsManage"
if [ ! -d "$subDir" ]; then
mkdir $subDir
chmod 777 $subDir
fi
systemctl enable ussdgw
exit 0

6
pkg/ussdgw/DEBIAN/prerm Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
# Commands to be run before uninstall of the package
systemctl disable ussdgw