~ubuntu-branches/ubuntu/vivid/dahdi-tools/vivid

« back to all changes in this revision

Viewing changes to .pc/init_unload_oslec/dahdi.init

  • Committer: Package Import Robot
  • Author(s): Stefan Bader
  • Date: 2014-12-10 15:23:10 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20141210152310-6qv78czvvxpye2v3
Tags: 1:2.10.0.1-1ubuntu1
* Merge from Debian. Remaining changes:
  - debian/control: Depend on (dahdi-dkms | dahdi-source) and gawk
* Dropped changes:
  - debian/dahdi.postinst: Upstream init script does not fail if no
    dahdi modules are present, so no use for the error handler in the
    postinst file.
  - debian/rules: For the same reason no need to set an error handler
    in the rules file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
        if ! /usr/share/dahdi/waitfor_xpds; then return 0; fi
149
149
 
150
150
        hotplug_exit_after_load
151
 
 
152
 
        # overriding locales for the above two, as perl can be noisy
153
 
        # when locales are missing.
154
 
        # No register all the devices if they didn't auto-register:
155
 
        LC_ALL=C dahdi_registration on
156
151
}
157
152
 
158
153
 
237
232
       exit 0
238
233
fi
239
234
 
240
 
if [ ! -f /etc/dahdi/system.conf ]; then
241
 
        echo "/etc/dahdi/system.conf not found. Nothing to do."
242
 
       exit 0
243
 
fi
244
 
 
245
235
RETVAL=0
246
236
 
247
237
# See how we were called.
268
258
 
269
259
        xpp_startup
270
260
 
 
261
        # Assign all spans that weren't handled via udev + /etc/dahdi/assigned-spans.conf
 
262
        /usr/share/dahdi/dahdi_auto_assign_compat
 
263
 
271
264
        if [ $system = debian ]; then
272
265
            echo -n "Running dahdi_cfg: "
273
266
            $DAHDI_CFG_CMD 2> /dev/null && echo -n "done"
286
279
                $FXOTUNE -s || :
287
280
        fi
288
281
 
289
 
        # Set the right Astribanks ticker:
290
 
        LC_ALL=C xpp_sync "$XPP_SYNC"
 
282
        # Do not try to call xpp_sync if there are no Astribank devices
 
283
        # installed.
 
284
        if test -e /sys/bus/astribanks; then 
 
285
                # Set the right Astribanks ticker:
 
286
                LC_ALL=C xpp_sync "$XPP_SYNC"
 
287
        fi
291
288
 
292
289
        hpec_start
293
290
        ;;