summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMario Izquierdo (mariodebian) <mariodebian@gmail.com>2011-07-05 13:16:40 +0200
committerMario Izquierdo (mariodebian) <mariodebian@gmail.com>2011-07-05 13:16:40 +0200
commite8c12b5492dc96370f780b7377eb574eba98753b (patch)
tree56179502a5f539d1fc73ea1125173dad42118931 /scripts
parentbb1d04121addce7c21af75ee980f79ed1510d900 (diff)
Use '-e' instead '-d' for dir tests
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tcos-bottom/40initsound4
-rwxr-xr-xscripts/tcos-bottom/78cpufreq2
-rwxr-xr-xscripts/tcos-top/01busybox14
-rwxr-xr-xscripts/tcos-top/05network2
4 files changed, 11 insertions, 11 deletions
diff --git a/scripts/tcos-bottom/40initsound b/scripts/tcos-bottom/40initsound
index bca7e51..bce1879 100755
--- a/scripts/tcos-bottom/40initsound
+++ b/scripts/tcos-bottom/40initsound
@@ -26,7 +26,7 @@ fi
# check if soundcard is avalaible
-if [ ! -d /proc/asound ] && [ ! -e /dev/dsp ] ; then
+if [ ! -e /proc/asound ] && [ ! -e /dev/dsp ] ; then
_log "INITSOUND /proc/asound and /dev/dsp don't exists, need other kernel modules!!!"
log_failure_msg "No soundcard found"
log_end_msg 1
@@ -36,7 +36,7 @@ fi
# DOCUMENTME volume=XX% | set master and pcm volume levels to value passed (0%-100% or integer from 1 to 31)
TCOS_VOLUME=$(read_cmdline_var "volume" "${TCOS_VOLUME}")
-if [ -e /dev/dsp ] && [ ! -d /proc/asound ]; then
+if [ -e /dev/dsp ] && [ ! -e /proc/asound ]; then
export TCOS_SOUND_OSS=1
echo "TCOS_SOUND_OSS=1" >> /conf/tcos.conf
diff --git a/scripts/tcos-bottom/78cpufreq b/scripts/tcos-bottom/78cpufreq
index 639dca0..36fa135 100755
--- a/scripts/tcos-bottom/78cpufreq
+++ b/scripts/tcos-bottom/78cpufreq
@@ -13,7 +13,7 @@ if [ "$TCOS_CPUFREQ" = "1" ]; then
modprobe acpi-cpufreq
modprobe cpufreq_powersave
- if [ -d /sys/devices/system/cpu/cpu0/cpufreq ]; then
+ if [ -e /sys/devices/system/cpu/cpu0/cpufreq ]; then
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
fi
diff --git a/scripts/tcos-top/01busybox b/scripts/tcos-top/01busybox
index 4d82183..5027949 100755
--- a/scripts/tcos-top/01busybox
+++ b/scripts/tcos-top/01busybox
@@ -37,13 +37,13 @@ fi
# hack for ubuntu old udev
while [ 1 ]; do
- [ -d /sys/class/net/eth0 ] && break
- [ -d /sys/class/net/eth1 ] && break
- [ -d /sys/class/net/eth2 ] && break
- [ -d /sys/class/net/wlan0 ] && break
- [ -d /sys/class/net/wlan1 ] && break
- [ -d /sys/class/net/ra0 ] && break
- [ -d /sys/class/net/ra1 ] && break
+ [ -e /sys/class/net/eth0 ] && break
+ [ -e /sys/class/net/eth1 ] && break
+ [ -e /sys/class/net/eth2 ] && break
+ [ -e /sys/class/net/wlan0 ] && break
+ [ -e /sys/class/net/wlan1 ] && break
+ [ -e /sys/class/net/ra0 ] && break
+ [ -e /sys/class/net/ra1 ] && break
[ -x /sbin/udevtrigger ] && /sbin/udevtrigger
[ -x /sbin/udevplug ] && /sbin/udevplug
[ -x /sbin/udevadm ] && /sbin/udevadm trigger
diff --git a/scripts/tcos-top/05network b/scripts/tcos-top/05network
index 56b9c3a..b5097d0 100755
--- a/scripts/tcos-top/05network
+++ b/scripts/tcos-top/05network
@@ -115,7 +115,7 @@ if [ $(read_cmdline_var 'wifi' '0') = "1" ]; then
TCOS_NET_WIFI_ESSID=$(read_cmdline_var "essid" "")
for dev in $TCOS_NET_DEVS; do
# is wireless????
- if [ -d /sys/class/net/$dev/wireless ]; then
+ if [ -e /sys/class/net/$dev/wireless ]; then
TCOS_NET_WIFI=1
TCOS_NET_LINK=$dev
# stop searching