Compare commits
No commits in common. "master" and "opendkim-freebsd-startonboot" have entirely different histories.
master
...
opendkim-f
4 changed files with 3 additions and 20 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
#
|
#
|
||||||
# 2012 Jake Guffey (jake.guffey at eprotex.com)
|
# 2012 Jake Guffey (jake.guffey at eprotex.com)
|
||||||
# 2026 Shannon Prickett
|
|
||||||
# 2026 Nico Schottelius
|
|
||||||
#
|
#
|
||||||
# This file is part of cdist.
|
# This file is part of cdist.
|
||||||
#
|
#
|
||||||
|
|
@ -45,7 +43,7 @@ for property in *; do
|
||||||
set -- "$@" "--$property" "$(cat "$property")"
|
set -- "$@" "--$property" "$(cat "$property")"
|
||||||
done
|
done
|
||||||
|
|
||||||
if grep -q '^[[:digit:]]\{2,\}\.' "$__global/explorer/os_version" ; then # Version > 9.x
|
if grep -q '^10\.' "$(cat "$__global/explorer/os_version")" ; then # Version is 10.x
|
||||||
__jail_freebsd10 "$@"
|
__jail_freebsd10 "$@"
|
||||||
else
|
else
|
||||||
__jail_freebsd9 "$@"
|
__jail_freebsd9 "$@"
|
||||||
|
|
@ -53,3 +51,4 @@ fi
|
||||||
|
|
||||||
# Debug
|
# Debug
|
||||||
#set +x
|
#set +x
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,3 @@ case "$os" in
|
||||||
echo "echo \"$timezone_should\" > /etc/timezone"
|
echo "echo \"$timezone_should\" > /etc/timezone"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$os" in
|
|
||||||
openwrt)
|
|
||||||
cat <<EOF
|
|
||||||
uci set system.@system[0].timezone="$timezone_should"
|
|
||||||
uci commit
|
|
||||||
EOF
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
|
||||||
|
|
@ -53,10 +53,7 @@ case "$os" in
|
||||||
--file /etc/sysconfig/clock \
|
--file /etc/sysconfig/clock \
|
||||||
--delimiter '=' \
|
--delimiter '=' \
|
||||||
--value "\"$timezone\""
|
--value "\"$timezone\""
|
||||||
;;
|
;;
|
||||||
openwrt)
|
|
||||||
: # Uses gencode-remote
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
echo "Your operating system ($os) is currently not supported by this type (${__type##*/})." >&2
|
echo "Your operating system ($os) is currently not supported by this type (${__type##*/})." >&2
|
||||||
echo "Please contribute an implementation for it if you can." >&2
|
echo "Please contribute an implementation for it if you can." >&2
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,6 @@
|
||||||
Changelog
|
Changelog
|
||||||
---------
|
---------
|
||||||
|
|
||||||
next:
|
|
||||||
* Type __timezone: Add support for OpenWRT (Nico Schottelius)
|
|
||||||
* Type __jail: Add support for FreeBSD > 10 (Shannon Prickett)
|
|
||||||
|
|
||||||
7.0.1:
|
7.0.1:
|
||||||
* Core: Remove double definition of scan parser (Nico Schottelius)
|
* Core: Remove double definition of scan parser (Nico Schottelius)
|
||||||
* Type __apt_mark: Narrow down grep for hold packages (marcoduif)
|
* Type __apt_mark: Narrow down grep for hold packages (marcoduif)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue