Rewrite plinth to use sudo and action scripts instead of exmachina for privileged accesss.

This commit is contained in:
Petter Reinholdtsen committed 2013-09-23 09:37:24 +02:00
1 parent 0954d9d383
commit 444365ec78
10 files changed
+52 -65

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
hostname="$1"
echo "$hostname" > /etc/hostname
if [ -x /etc/init.d/hostname.sh ] ; then
service hostname.sh start
else
service hostname start
fi
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
zonename="$1"
tzpath="/usr/share/zoneinfo/$zonename"
if [ -e "$tzpath" ] ; then
cp "$tzpath" /etc/localtime
echo "$zonename" > /etc/timezone
exit 0
else
echo "timezone not valid" 1>&2
exit 1
fi