Add mod: setnet
This commit is contained in:
parent
f02d0d048d
commit
7033086b0e
16
mods/setnet/data/chroot
Executable file
16
mods/setnet/data/chroot
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
command -v wget >/dev/null
|
||||
WGET_INSTALL="$?"
|
||||
set -e
|
||||
|
||||
if [ "$WGET_INSTALL" = "1" ]; then
|
||||
apt-get -y install wget
|
||||
fi
|
||||
|
||||
wget "https://pkgmaster.devuan.org/devuan/pool/main/s/setnet/setnet_0.4.0-1_all.deb"
|
||||
apt-get -y install "./setnet_0.4.0-1_all.deb"
|
||||
rm "./setnet_0.4.0-1_all.deb"
|
||||
|
||||
if [ "$WGET_INSTALL" = "1" ]; then
|
||||
apt-get -y remove --purge --auto-remove wget
|
||||
fi
|
11
mods/setnet/data/usr/local/share/applications/setnet_sh.desktop
Executable file
11
mods/setnet/data/usr/local/share/applications/setnet_sh.desktop
Executable file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=setnet.sh
|
||||
Comment=Configure Networking (LAN/WiFi)
|
||||
Exec=x-terminal-emulator -e "sudo setnet.sh"
|
||||
Icon=preferences-system-network
|
||||
Path=
|
||||
Terminal=false
|
||||
StartupNotify=false
|
||||
Categories=Settings;HardwareSettings;
|
Loading…
Reference in New Issue
Block a user