1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/rocknet/rocknet.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
16 pkg_rocknet_install() {
17 echo "Installing the rock-net files ..."
18 install -v -m 755 $confdir/rocknet.sh $root$sbindir/rocknet
19 install -v -m 755 $confdir/ifup.sh $root$sbindir/ifup
20 install -v -m 755 $confdir/ifswitch.sh $root$sbindir/ifswitch
21 install -v -m 755 $confdir/rocknet-getprofile $root/etc/conf/network-getprofile
22 ln -sf ifup $root$sbindir/ifdown
29 hook_add postmake 5 'pkg_rocknet_install'
30 hook_add postdoc 5 'var_remove rmemptydir " " "$root$libdir"'