# $Id$
# You can put here anything :)
#
-echo " Disconnect time: `date` from $PPP_REMOTE " >> /var/log/ppp.log
+echo " Disconnect time: $(date) from $PPP_REMOTE " >> /var/log/ppp.log
echo "+---------------------------------------------------------------+" >> /var/log/ppp.log
# You can put here anything :)
#
echo "+---------------------------------------------------------------+" >> /var/log/ppp.log
-echo " Connect time: `date` with $PPP_REMOTE " >> /var/log/ppp.log
+echo " Connect time: $(date) with $PPP_REMOTE " >> /var/log/ppp.log
}
cpuset_files="$(cpuset_configs 'cpuset-*')"
-cpusets_boot=`
+cpusets_boot=$(
for i in $cpuset_files; do
ONBOOT=""; . "$i" 2>/dev/null
is_yes "$ONBOOT" && echo "${i##*/cpuset-}"
done
-`
+)
# See how we were called.
case "$1" in
echo "$cpusets_boot"
echo
nls "Currently empty cpusets:"
- for i in `ls /dev/cpuset 2>/dev/null`; do
+ for i in $(ls /dev/cpuset 2>/dev/null); do
if [ -d /dev/cpuset/$i ]; then
cpuset_empty $i && echo $i
fi
done
echo
nls "Currently active cpusets:"
- for i in `ls /dev/cpuset 2>/dev/null`; do
+ for i in $(ls /dev/cpuset 2>/dev/null); do
if [ -d /dev/cpuset/$i ]; then
cpuset_empty $i || echo $i
fi
if [ -n "$bootprio" ]; then
# find all the interfaces besides loopback.
- interfaces_boot=`
+ interfaces_boot=$(
for a in $(echo "$bootprio" | sort -t= -n -k2,2); do
i="${a%:BOOTPRIO*}"
case $i in
ONBOOT=""; . "$i" 2>/dev/null
[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
done
- `
+ )
else
- interfaces_boot=`
+ interfaces_boot=$(
for i in $ifcfg_files; do
case ${i##*/} in
ifcfg-lo|ifcfg-sit*|ifcfg-atm*|ifcfg-lec*|ifcfg-nas*|ifcfg-br*|ifcfg-*.*) continue ;;
ONBOOT=""; . "$i" 2>/dev/null
[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
done
- `
+ )
- interfaces_vlan_boot=`
+ interfaces_vlan_boot=$(
for i in $ifcfg_files; do
case ${i##*/} in
ifcfg-*.*) ;;
ONBOOT=""; . "$i" 2>/dev/null
[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
done
- `
+ )
- interfaces_br_boot=`
+ interfaces_br_boot=$(
for i in $ifcfg_files; do
case ${i##*/} in
ifcfg-br*) ;;
ONBOOT=""; . "$i" 2>/dev/null
[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
done
- `
+ )
- interfaces_sit_boot=`
+ interfaces_sit_boot=$(
for i in $ifcfg_files; do
case ${i##*/} in
ifcfg-sit*) ;;
ONBOOT=""; . "$i" 2>/dev/null
[ ${ONBOOT:-no} = yes ] && echo "${i##*/ifcfg-}"
done
- `
+ )
fi
- tunnels=`
+ tunnels=$(
for i in $(network_interface_configs 'tnlcfg-*'); do
ONBOOT=""; . "$i" 2>/dev/null
[ ${ONBOOT:-no} = yes ] && echo "${i##*/tnlcfg-}"
done
- `
+ )
}
start() {
nls "*** when you leave the shell."
echo
- PS1="`nls '(Repair filesystem)# '`"; export PS1
+ PS1="$(nls '(Repair filesystem)# ')"; export PS1
[ "$SELINUX" = "1" ] && disable_selinux
if ! is_no "$RUN_SULOGIN_ON_ERR"; then
/sbin/sulogin
RUNPARTS_DIR=$1
# assign absolute dir name
-olddir=`pwd`
+olddir=$(pwd)
cd $RUNPARTS_DIR
-RUNPARTS_ADIR=`pwd`
+RUNPARTS_ADIR=$(pwd)
cd $olddir
unset olddir
PATH="/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin"
export PATH
-VERSION="`basename $0` ver. 0.91"
-USAGE="Usage: `basename $0` < option > | --status-all | \
+VERSION="$(basename $0) ver. 0.91"
+USAGE="Usage: $(basename $0) < option > | --status-all | \
[ service_name [ command | --full-restart ] ]"
SERVICE=
hwprofilesdir = @sysconfigdir@/hwprofiles
-hwprofiles_DATA =
-noinst_DATA = \
- files
+hwprofiles_DATA = files
-EXTRA_DIST = $(hwprofiles_DATA) $(noinst_DATA)
+EXTRA_DIST = $(hwprofiles_DATA)
# $Id$
# You can put here anything :)
#
-echo " Disconnect time: `date` from $PPP_REMOTE " >> /var/log/ppp.log
+echo " Disconnect time: $(date) from $PPP_REMOTE " >> /var/log/ppp.log
echo "+---------------------------------------------------------------+" >> /var/log/ppp.log
# You can put here anything :)
#
echo "+---------------------------------------------------------------+" >> /var/log/ppp.log
-echo " Connect time: `date` with $PPP_REMOTE " >> /var/log/ppp.log
+echo " Connect time: $(date) with $PPP_REMOTE " >> /var/log/ppp.log
vlan_setup()
{
- if [ -x /sbin/vconfig -a -e /proc/net/vlan/config ] && `echo $DEVICE | grep -q ^eth`; then
+ if [ -x /sbin/vconfig -a -e /proc/net/vlan/config ] && $(echo $DEVICE | grep -q ^eth); then
/sbin/vconfig set_name_type DEV_PLUS_VID_NO_PAD 2>&1 > /dev/null
ETH_VLANS="yes"
else
get_ppp_device_and_pid ()
{
if [ -f "/var/run/ppp-$DEVNAME.pid" ] ; then
- eval `{
+ eval $(
+ {
read PID ; echo "PID='$PID'"
read REALDEVICE ; echo "REALDEVICE=$REALDEVICE"
- } < "/var/run/ppp-$DEVNAME.pid"`
+ } < "/var/run/ppp-$DEVNAME.pid")
fi
if [ -z "$REALDEVICE" ] ; then
check_device_down && exit 0
vlan_setup
-if is_yes $ETH_VLANS && `echo $DEVICE | grep -q ^eth` ; then
+if is_yes $ETH_VLANS && $(echo $DEVICE | grep -q ^eth) ; then
if echo "${DEVICE}" | grep -q '\.' ; then
# vlan down
ip addr flush dev ${DEVICE} 2>&1 | grep -v "Nothing to flush"
/sbin/vconfig rem ${DEVICE} 2>&1 > /dev/null
else
# downujemy interfejs nadrzedny do vlanow
- for VLANDEVICE in `ls /proc/net/vlan 2> /dev/null | grep ^${DEVICE}` ; do
+ for VLANDEVICE in $(ls /proc/net/vlan 2> /dev/null | grep ^${DEVICE}) ; do
# najpierw wszystkie vlany po kolei
ip addr flush dev ${VLANDEVICE} 2>&1 | grep -v "Nothing to flush"
ip link set ${VLANDEVICE} down
exit 1
}
-if [ `id -u` != 0 ]; then
+if [ $(id -u) != 0 ]; then
if [ -x /sbin/usernetctl ]; then
exec /sbin/usernetctl $DEV up
fi
# add ipx for all frame types
for frametype in '802.2' '802.2TR' '802.3' 'EtherII' 'SNAP'; do
framename=$(echo $frametype | awk ' { gsub(/\./,"_"); print $0 } ')
- case $(eval echo $(echo \$`echo IPXACTIVE_$framename`)) in
+ case $(eval echo $(echo \$$(echo IPXACTIVE_$framename))) in
yes|true)
- case $(eval echo $(echo \$`echo IPXPRIMARY_$framename`)) in
+ case $(eval echo $(echo \$$(echo IPXPRIMARY_$framename))) in
yes|true) primary="-p" ;;
*) primary= ;;
esac
ip link set $DEVICE up
/sbin/ipx_interface add $primary $DEVICE $frametype \
- $(eval echo $(echo \$`echo IPXNETNUM_$framename`))
+ $(eval echo $(echo \$$(echo IPXNETNUM_$framename)))
;;
esac
done