diff options
author | crocket <crockabiscuit@yahoo.com> | 2011-01-29 23:08:53 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-01-30 09:15:30 -0600 |
commit | 1351898b8fef415a3e11ddb1b7f68459b526646c (patch) | |
tree | 3d64aa277b46d4ca5ce5ddeac23137a0381d0e1f /network/rt3xxx/doinst.sh | |
parent | 46c9bfb1f98fd317078db019265bf798e1d0ad6a (diff) | |
download | slackbuilds-1351898b8fef415a3e11ddb1b7f68459b526646c.tar.gz |
network/rt3xxx: Added (driver for rt3xxx chipsets)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/rt3xxx/doinst.sh')
-rw-r--r-- | network/rt3xxx/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/rt3xxx/doinst.sh b/network/rt3xxx/doinst.sh new file mode 100644 index 0000000000..cf9b4e4735 --- /dev/null +++ b/network/rt3xxx/doinst.sh @@ -0,0 +1,15 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +depmod -a + |